aboutsummaryrefslogtreecommitdiff
path: root/tests/let.scm
diff options
context:
space:
mode:
authorHugo Hörnquist <hugo@hornquist.se>2019-12-30 02:11:38 +0100
committerHugo Hörnquist <hugo@hornquist.se>2019-12-30 02:11:38 +0100
commitb6d12e309b207c25de7873f658aa0f88ea77080c (patch)
treeea4a8515c4c5b3e6798f6b3b69e24ad76f53b883 /tests/let.scm
parentFix keyword argument. (diff)
downloadcalp-b6d12e309b207c25de7873f658aa0f88ea77080c.tar.gz
calp-b6d12e309b207c25de7873f658aa0f88ea77080c.tar.xz
Reworked tests.
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)))
+