aboutsummaryrefslogtreecommitdiff
path: root/tests/let.scm
diff options
context:
space:
mode:
Diffstat (limited to 'tests/let.scm')
-rw-r--r--tests/let.scm6
1 files changed, 4 insertions, 2 deletions
diff --git a/tests/let.scm b/tests/let.scm
index 02e38a42..14a246d2 100644
--- a/tests/let.scm
+++ b/tests/let.scm
@@ -1,7 +1,8 @@
-(use-modules (util))
+(((util) let*)
+ ((guile) set!))
(test-assert (let* ((a #t)) a))
-(test-assert (let* (((a . b) '(#t . #f))) a))
+(test-assert (let* (((a . b) (cons #t #f))) a))
(test-assert (let* (((a . b) (cons* #f #t))) b))
(test-assert (let* ((a b c (values #f #t #f))) b))
(test-assert (let* (((a b c) (list #f #t #f))) b))
@@ -12,3 +13,4 @@
(test-equal 30 (let* (x y) (set! x 10) (set! y 20) (+ x y)))
(test-assert (let* (x) (not x)))
(test-equal 6 (let* ((x 1) y z) (set! y 2) (set! z 3) (+ x y z)))
+