mirror of
https://github.com/ashinn/chibi-scheme.git
synced 2025-05-19 05:39:18 +02:00
Test that (expt bignum -k) is correct
This commit is contained in:
parent
39043bc47c
commit
4d8933119f
1 changed files with 4 additions and 0 deletions
|
@ -16,6 +16,10 @@
|
|||
(define (run-tests)
|
||||
(test-begin "numbers")
|
||||
|
||||
(test 3 (expt 3 1))
|
||||
;(test 1/3 (expt 3 -1))
|
||||
(test 1/300000000000000000000 (expt 300000000000000000000 -1))
|
||||
|
||||
(test '(536870912 536870913 536870911 -536870912 -536870911 -536870913)
|
||||
(integer-neighborhoods (expt 2 29)))
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue