* lib.scm (exception:numerical-overflow): New define.
authorKevin Ryde <user42@zip.com.au>
Sat, 29 May 2004 22:13:27 +0000 (22:13 +0000)
committerKevin Ryde <user42@zip.com.au>
Sat, 29 May 2004 22:13:27 +0000 (22:13 +0000)
* tests/numbers.test (modulo-expt): Use it and
exception:wrong-type-arg, avoiding empty "" regexp which is invalid on
BSD.  Reported by Andreas Vögele.

test-suite/tests/numbers.test

index 454e07d..358e305 100644 (file)
 
    (pass-if-exception
     "Proper exception with 0 modulus"
-    (cons 'numerical-overflow "")
+    exception:numerical-overflow
     (modulo-expt 17 23 0))
 
    (pass-if-exception
     "Proper exception when result not invertible"
-    (cons 'numerical-overflow "")
+    exception:numerical-overflow
     (modulo-expt 10 -1 48))
 
    (pass-if-exception
     "Proper exception with wrong type argument"
-    (cons 'wrong-type-arg "")
+    exception:wrong-type-arg
     (modulo-expt "Sam" 23 10))
 
    (pass-if-exception
     "Proper exception with wrong type argument"
-    (cons 'wrong-type-arg "")
+    exception:wrong-type-arg
     (modulo-expt 17 9.9 10))
    
     (pass-if-exception
     "Proper exception with wrong type argument"
-    (cons 'wrong-type-arg "")
+    exception:wrong-type-arg
     (modulo-expt 17 23 'Ethel)))
 
 ;;;