Adding environment tests.

This commit is contained in:
Alex Shinn 2012-11-04 21:46:14 +09:00
parent 33326888f0
commit 5b9a41f2c1

View file

@ -1272,6 +1272,11 @@
(let ((f (eval '(lambda (f x) (f x x)) (null-environment 5))))
(f + 10)))
(test 1024 (eval '(expt 2 10) (environment '(scheme base))))
(test 0.0 (eval '(sin 0) (environment '(scheme inexact))))
(test 1024.0 (eval '(+ (expt 2 10) (sin 0))
(environment '(scheme base) '(scheme inexact))))
;; 6.13 Input and output
(test #t (port? (current-input-port)))