* lib.scm (exception:used-before-define): New.
authorMarius Vollmer <mvo@zagadka.de>
Mon, 23 Aug 2004 10:48:51 +0000 (10:48 +0000)
committerMarius Vollmer <mvo@zagadka.de>
Mon, 23 Aug 2004 10:48:51 +0000 (10:48 +0000)
* tests/syntax.test ("letrec"): Use it.

test-suite/lib.scm
test-suite/tests/syntax.test

index ae4ff16..4608328 100644 (file)
@@ -25,6 +25,7 @@
  exception:bad-variable
  exception:missing-expression
  exception:out-of-range exception:unbound-var
+ exception:used-before-defined
  exception:wrong-num-args exception:wrong-type-arg
  exception:numerical-overflow
 
   (cons 'out-of-range "^Argument .*out of range"))
 (define exception:unbound-var
   (cons 'unbound-variable "^Unbound variable"))
+(define exception:used-before-defined
+  (cons 'unbound-variable "^Variable used before given a value"))
 (define exception:wrong-num-args
   (cons 'wrong-number-of-args "^Wrong number of arguments"))
 (define exception:wrong-type-arg
index 9b3432a..ae02ee8 100644 (file)
   (with-test-prefix "bindings"
 
     (pass-if-exception "initial bindings are undefined"
-      exception:unbound-var
+      exception:used-before-defined
       (let ((x 1))
        (letrec ((x 1) (y x)) y))))