* Added a new test case plus minor improvements.
authorDirk Herrmann <dirk@dirk-herrmanns-seiten.de>
Sun, 11 Mar 2001 23:31:58 +0000 (23:31 +0000)
committerDirk Herrmann <dirk@dirk-herrmanns-seiten.de>
Sun, 11 Mar 2001 23:31:58 +0000 (23:31 +0000)
test-suite/ChangeLog
test-suite/tests/syntax.test

index 92b08fb..f7a6d90 100644 (file)
@@ -1,3 +1,8 @@
+2001-03-12  Dirk Herrmann  <D.Herrmann@tu-bs.de>
+
+       * tests/syntax.test:  Added a test for let* bindings and
+       re-arranged and slightly improved the existing one.
+
 2001-03-09  Martin Grabmueller  <mgrabmue@cs.tu-berlin.de>
 
        * tests/syntax.test ("let*"): Changed the `duplicate bindings'
index 7463d88..53370c9 100644 (file)
 
 (with-test-prefix "let*"
 
+  (with-test-prefix "bindings"
+
+    (pass-if "(let* ((x 1) (x 2)) ...)"
+      (let* ((x 1) (x 2))
+       (= x 2)))
+
+    (pass-if "(let* ((x 1) (x x)) ...)"
+      (let* ((x 1) (x x))
+       (= x 1))))
+
   (with-test-prefix "bad body"
 
     (pass-if-exception "(let* ())"
 
     (pass-if-exception "(let* ((1 2)) 3)"
       exception:bad-var
-      (let* ((1 2)) 3)))
-
-  (with-test-prefix "duplicate bindings"
-
-    (pass-if "(let* ((x 1) (x 2)) x)"
-      (let* ((x 1) (x 2)) #t))))
+      (let* ((1 2)) 3))))
 
 (with-test-prefix "letrec"