(gcd): Exercise bignum/inum with a bignum not
authorKevin Ryde <user42@zip.com.au>
Sat, 10 May 2003 00:23:00 +0000 (00:23 +0000)
committerKevin Ryde <user42@zip.com.au>
Sat, 10 May 2003 00:23:00 +0000 (00:23 +0000)
fitting a ulong.

test-suite/tests/numbers.test

index 66830f9..9520cb0 100644 (file)
     (pass-if "n = fixnum-min - 1"
       (eqv? (- (- fixnum-min 1)) (gcd 0 (- fixnum-min 1)))))
 
+  (with-test-prefix "(n 0)"
+
+    (pass-if "n = 2^128 * fixnum-max"
+      (eqv? (ash fixnum-max 128) (gcd (ash fixnum-max 128) 0))))
+
   (with-test-prefix "(1 n)"
 
     (pass-if "n = 0"