From b6d12e309b207c25de7873f658aa0f88ea77080c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hugo=20H=C3=B6rnquist?= Date: Mon, 30 Dec 2019 02:11:38 +0100 Subject: Reworked tests. --- tests/let.scm | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'tests/let.scm') 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))) + -- cgit v1.2.3