Exercise most-negative-fixnum over -ve of most-negative-fixnum.
authorKevin Ryde <user42@zip.com.au>
Tue, 2 Dec 2003 21:24:58 +0000 (21:24 +0000)
committerKevin Ryde <user42@zip.com.au>
Tue, 2 Dec 2003 21:24:58 +0000 (21:24 +0000)
test-suite/tests/fractions.test

index 90320f2..47168bf 100644 (file)
   (testeqv 3/4 3000000000000/4000000000000)
   (testeqv 3 3/1)
   (test= 1/3 (/ 1.0 3.0))
+
+  (test= -1 (/ most-negative-fixnum (- most-negative-fixnum)))
+  (testeq #t (integer? (/ most-negative-fixnum (- most-negative-fixnum))))
+
   (testeqv (+ 1/4 1/2) 3/4)
   (testeqv (* 1/4 2/3) 1/6)
   (testeqv (/ 1/4 2/3) 3/8)