(exception:wrong-num-indices): New, use it for array-set! tests with
authorMarius Vollmer <mvo@zagadka.de>
Mon, 10 Jan 2005 01:44:34 +0000 (01:44 +0000)
committerMarius Vollmer <mvo@zagadka.de>
Mon, 10 Jan 2005 01:44:34 +0000 (01:44 +0000)
wrong number of indices.

test-suite/tests/unif.test

index 1a2b254..a843203 100644 (file)
@@ -23,6 +23,9 @@
 ;;; array?
 ;;;
 
+(define exception:wrong-num-indices
+  (cons 'misc-error "^wrong number of indices.*"))
+
 (with-test-prefix "array?"
 
   (let ((bool     (make-typed-array 'b    #t  '(5 6)))
        (array-set! a 'y 2 7))
       (pass-if-exception "end i+1" exception:out-of-range
        (array-set! a 'y 6 9))
-      (pass-if-exception "one index" exception:wrong-num-args
+      (pass-if-exception "one index" exception:wrong-num-indices
        (array-set! a 'y 4))
-      (pass-if-exception "three indexes" exception:wrong-num-args
+      (pass-if-exception "three indexes" exception:wrong-num-indices
        (array-set! a 'y 4 8 0)))))
 
 ;;;