HCoop
/
bpt
/
guile.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8c5b0af
)
(gcd): Exercise bignum/inum with a bignum not
author
Kevin Ryde
<user42@zip.com.au>
Sat, 10 May 2003 00:23:00 +0000
(
00:23
+0000)
committer
Kevin Ryde
<user42@zip.com.au>
Sat, 10 May 2003 00:23:00 +0000
(
00:23
+0000)
fitting a ulong.
test-suite/tests/numbers.test
patch
|
blob
|
blame
|
history
diff --git
a/test-suite/tests/numbers.test
b/test-suite/tests/numbers.test
index
66830f9
..
9520cb0
100644
(file)
--- a/
test-suite/tests/numbers.test
+++ b/
test-suite/tests/numbers.test
@@
-763,6
+763,11
@@
(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"