1
Fork 0
mirror of https://git.savannah.gnu.org/git/guile.git synced 2025-06-18 17:50:29 +02:00

Implementation and test case for R6RS (rnrs eval) library.

* module/Makefile.am: Add rnrs/6/eval.scm to RNRS_SOURCES.
* module/rnrs/6/eval.scm: New file
* test-suite/Makefile.am: Add tests/r6rs-eval.test to SCM_TESTS.
* test-suite/tests/r6rs-eval.test: New file.
This commit is contained in:
Julian Graham 2010-03-30 14:38:27 -04:00
parent bc4db0905f
commit 15ce5cafbc
4 changed files with 69 additions and 0 deletions

View file

@ -80,6 +80,7 @@ SCM_TESTS = tests/00-initial-env.test \
tests/r6rs-conditions.test \
tests/r6rs-control.test \
tests/r6rs-enums.test \
tests/r6rs-eval.test \
tests/r6rs-exceptions.test \
tests/r6rs-files.test \
tests/r6rs-hashtables.test \

View file

@ -0,0 +1,28 @@
;;; r6rs-eval.test --- Test suite for R6RS (rnrs eval)
;; Copyright (C) 2010 Free Software Foundation, Inc.
;;
;; This library is free software; you can redistribute it and/or
;; modify it under the terms of the GNU Lesser General Public
;; License as published by the Free Software Foundation; either
;; version 3 of the Lice6nse, or (at your option) any later version.
;;
;; This library is distributed in the hope that it will be useful,
;; but WITHOUT ANY WARRANTY; without even the implied warranty of
;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
;; Lesser General Public License for more details.
;;
;; You should have received a copy of the GNU Lesser General Public
;; License along with this library; if not, write to the Free Software
;; Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
(define-module (test-suite test-rnrs-eval)
:use-module ((rnrs eval) :version (6))
:use-module (test-suite lib))
(with-test-prefix "environment"
(pass-if "simple"
(eqv? (eval '(eval:car (eval:cons 2 4))
(environment '(prefix (only (rnrs base) car cons) eval:)))
2)))