Test output for numbers
Testing time: 10.0s
CHICKEN_INSTALL_PREFIX=/root/src/salmonella/salmonella-4.5.0/repo CHICKEN_INCLUDE_PATH=/root/src/salmonella/salmonella-4.5.0/repo/share/chicken CHICKEN_REPOSITORY=/root/src/salmonella/salmonella-4.5.0/repo/lib/chicken/5 /usr/local/chicken-4.5.0/bin/csi -script run.scm
-- testing numbers -----------------------------------------------------------
-- testing Basic numbers tests -------------------------------------------
1073741823
-1073741824
2147483646
-- testing numbers ---------------------------------------------------
-- testing basic constructors ------------------------------------
some bignum (twice maxint) ............................... 2147483646
[ PASS]
some other bignum (2147483668) ........................... 2147483668
[ PASS]
negative bignum .......................................... -1073741846
[ PASS]
exact complex ............................................ 33+44i
[ PASS]
inexact complex .......................................... -1.2+44.0i
[ PASS]
rational ................................................. 3/4
[ PASS]
6 tests completed in 0.008 seconds.
6 out of 6 (100%) tests passed.
-- done testing basic constructors -------------------------------
-- testing addition ----------------------------------------------
+: no arguments .......................................... [ PASS]
+: single argument ....................................... [ PASS]
+: adding fixnums ........................................ [ PASS]
+: adding fixnums (2nd negative) ......................... [ PASS]
+: adding fix/flo ........................................ [ PASS]
+: adding fix/big ........................................ 2147483668
[ PASS]
+: adding fix/rat ........................................ 91/4
[ PASS]
+: adding fix/complex .................................... [ PASS]
+: adding complex/fix (inexact) .......................... [ PASS]
+: flo/flo ............................................... [ PASS]
+: flo/big ............................................... [ PASS]
+: flo/rat ............................................... 34.15
[ PASS]
+: flo/comp .............................................. [ PASS]
+: big/rat ............................................... 8589934675/4
[ PASS]
+: comp+comp ............................................. [ PASS]
+: comp+comp (inexact) ................................... [ PASS]
+: multiarg .............................................. [ PASS]
17 tests completed in 0.001 seconds.
17 out of 17 (100%) tests passed.
-- done testing addition -----------------------------------------
-- testing subtraction -------------------------------------------
-: negate fix ............................................ [ PASS]
-: negate most negative fix .............................. [ PASS]
-: negate flo ............................................ [ PASS]
-: negate rat ............................................ -3/4
[ PASS]
-: negate big (should be -2147483668) .................... -2147483668
[ PASS]
-: negate comp ........................................... [ PASS]
-: fixnums ............................................... [ PASS]
-: fixnums (2nd negative) ................................ [ PASS]
-: fixnums (overflow) .................................... 0
[ PASS]
-: fix/flo ............................................... [ PASS]
-: flo/fix ............................................... [ PASS]
-: fix/big ............................................... 1073741868
[ PASS]
-: big/fix ............................................... -1073741868
[ PASS]
-: big/fix (normalizing to fix) .......................... [ PASS]
-: fix/rat ............................................... 85/4
[ PASS]
-: rat/fix ............................................... -85/4
[ PASS]
-: fix/complex ........................................... [ PASS]
-: complex/fix ........................................... [ PASS]
-: complex/fix (inexact) ................................. [ PASS]
-: fix/complex (inexact) ................................. [ PASS]
-: flo/flo ............................................... [ PASS]
-: flo/big ............................................... -2147483664.6
[ PASS]
-: big/flo ............................................... 2147483664.6
[ PASS]
-: flo/rat ............................................... 2.65
[ PASS]
-: rat/flo ............................................... -2.65
[ PASS]
-: big/rat ............................................... 8589934669/4
[ PASS]
-: rat/big ............................................... -8589934669/4
[ PASS]
-: flo/comp .............................................. [ PASS]
-: comp/flo .............................................. [ PASS]
-: comp-comp ............................................. [ PASS]
-: comp-comp (inexact) ................................... [ PASS]
-: multiarg .............................................. [ PASS]
32 tests completed in 0.003 seconds.
32 out of 32 (100%) tests passed.
-- done testing subtraction --------------------------------------
-- testing multiplication ----------------------------------------
*: no arguments .......................................... [ PASS]
*: single argument ....................................... [ PASS]
*: multiplying fixnums ................................... [ PASS]
*: multiplying fixnums (2nd negative) .................... [ PASS]
*: multiplying fix/flo ................................... [ PASS]
*: multiplying fix/big (-> 47244640212) .................. 47244640212
[ PASS]
*: multiplying fix/rat ................................... 99/4
[ PASS]
*: multiplying fix/complex ............................... [ PASS]
*: multiplying complex/fix (inexact) ..................... [ PASS]
*: flo/flo ............................................... [ PASS]
*: flo/big ............................................... [ PASS]
*: flo/rat ............................................... 2.55
[ PASS]
*: big/rat ............................................... 1610612751
[ PASS]
*: flo/comp .............................................. [ PASS]
*: comp*comp ............................................. [ PASS]
*: comp*comp (inexact) ................................... [ PASS]
*: multiarg .............................................. [ PASS]
17 tests completed in 0.001 seconds.
17 out of 17 (100%) tests passed.
-- done testing multiplication -----------------------------------
-- testing division ----------------------------------------------
/: rec. fix .............................................. 1/33
[ PASS]
/: rec. flo .............................................. 0.0301204819277108
[ PASS]
/: rec. rat .............................................. 4/3
[ PASS]
/: rec. big .............................................. 1/2147483668
[ PASS]
/: rec. comp ............................................. [ PASS]
/: fixnums ............................................... 3/4
[ PASS]
/: fixnums (both negative, fixnum result) ................ 1
[ PASS]
/: fixnums (2nd negative) ................................ -3/4
[ PASS]
/: fixnums ............................................... 1
[ PASS]
/: fix/flo ............................................... [ PASS]
/: flo/fix ............................................... [ PASS]
/: fix/big ............................................... -11/536870923
[ PASS]
/: big/fix ............................................... -536870923/11
[ PASS]
/: fix/rat ............................................... 88/3
[ PASS]
/: rat/fix ............................................... 3/88
[ PASS]
/: fix/complex ........................................... 27/25-36/25i
[ PASS]
/: complex/fix ........................................... 1/3+4/9i
[ PASS]
/: complex/fix (inexact) ................................. -100.2+44.0i
[ PASS]
/: fix/complex (inexact) ................................. 100.2-44.0i
[ PASS]
/: flo/flo ............................................... [ PASS]
/: flo/big ............................................... 1.58324836210116e-09
[ PASS]
/: big/flo ............................................... 631612843.529412
[ PASS]
/: flo/rat ............................................... 4.53333333333333
[ PASS]
/: rat/flo ............................................... 0.220588235294118
[ PASS]
/: big/rat ............................................... 8589934672/3
[ PASS]
/: rat/big ............................................... 3/8589934672
[ PASS]
/: rat/rat ............................................... 1
[ PASS]
/: flo/comp .............................................. 0.0370909090909091-0.0494545454545455i
[ PASS]
/: comp/flo .............................................. 9.70588235294118+12.9411764705882i
[ PASS]
/: comp/comp ............................................. 1
[ PASS]
/: comp/comp (inexact) ................................... 0.978817408539103-0.776695020232885i
[ PASS]
/: multiarg .............................................. 3/4
[ PASS]
/: div by 0 .............................................. [ PASS]
/: div by 0 (inexact) .................................... [ PASS]
/: big result ............................................ 1073741834
[ PASS]
35 tests completed in 0.009 seconds.
35 out of 35 (100%) tests passed.
-- done testing division -----------------------------------------
-- testing quotient ----------------------------------------------
quotient: fix/fix ........................................ [ PASS]
quotient: fix/big ........................................ [ PASS]
quotient: fix/big (most negative) ........................ [ PASS]
quotient: big/fix (most negative) ........................ [ PASS]
quotient: flo/flo ........................................ [ PASS]
quotient: fix/flo ........................................ [ PASS]
quotient: flo/fix ........................................ [ PASS]
quotient: flo/big ........................................ [ PASS]
quotient: flo/flo (fractional) ........................... [ PASS]
quotient: fix/flo (fractional) ........................... [ PASS]
quotient: big/flo (fractional) ........................... [ PASS]
quotient: flo/fix (fractional) ........................... [ PASS]
12 tests completed in 0.001 seconds.
12 out of 12 (100%) tests passed.
-- done testing quotient -----------------------------------------
-- testing remainder ---------------------------------------------
remainder: fix/fix ....................................... [ PASS]
remainder: fix/big ....................................... [ PASS]
remainder: fix/big (most negative) ....................... [ PASS]
remainder: big/fix (most negative) ....................... [ PASS]
remainder: flo/flo ....................................... [ PASS]
remainder: fix/flo ....................................... [ PASS]
remainder: flo/fix ....................................... [ PASS]
remainder: flo/big ....................................... [ PASS]
remainder: flo/flo (fractional) .......................... [ PASS]
remainder: fix/flo (fractional) .......................... [ PASS]
remainder: flo/fix (fractional) .......................... [ PASS]
remainder: flo/big (fractional) .......................... [ PASS]
12 tests completed in 0.001 seconds.
12 out of 12 (100%) tests passed.
-- done testing remainder ----------------------------------------
-- testing quotient&remainder ------------------------------------
quotient&remainder: fix/fix .............................. [ PASS]
quotient&remainder: fix/big .............................. [ PASS]
quotient&remainder: fix/big (most negative) .............. [ PASS]
quotient&remainder: big/fix (most negative) .............. [ PASS]
quotient&remainder: flo/flo .............................. [ PASS]
quotient&remainder: flo/fix .............................. [ PASS]
quotient&remainder: fix/flo .............................. [ PASS]
quotient&remainder: flo/big .............................. [ PASS]
quotient&remainder: big/flo .............................. [ PASS]
9 tests completed in 0.001 seconds.
9 out of 9 (100%) tests passed.
-- done testing quotient&remainder -------------------------------
-- testing gcd ---------------------------------------------------
gcd: fix (64-bit)/big .................................... [ PASS]
1 test completed in 0 seconds.
1 out of 1 (100%) test passed.
-- done testing gcd ----------------------------------------------
-- testing equality ----------------------------------------------
=: fix/fix ............................................... [ PASS]
=: fix/flo ............................................... [ PASS]
=: !fix/fix .............................................. [ PASS]
=: !fix/flo .............................................. [ PASS]
=: flo/fix ............................................... [ PASS]
=: flo/flo ............................................... [ PASS]
=: !flo/flo .............................................. [ PASS]
=: big/flo ............................................... [ PASS]
=: big/big ............................................... [ PASS]
=: !big/big .............................................. [ PASS]
=: rat/flo ............................................... [ PASS]
=: rat/rat ............................................... [ PASS]
=: !rat/rat .............................................. [ PASS]
=: comp/comp ............................................. [ PASS]
=: !comp/comp ............................................ [ PASS]
15 tests completed in 0.001 seconds.
15 out of 15 (100%) tests passed.
-- done testing equality -----------------------------------------
-- testing generic equality --------------------------------------
equal?: fix/fix .......................................... [ PASS]
equal?: fix/flo .......................................... [ PASS]
equal?: !fix/fix ......................................... [ PASS]
equal?: !fix/flo ......................................... [ PASS]
equal?: flo/fix .......................................... [ PASS]
equal?: flo/flo .......................................... [ PASS]
equal?: !flo/flo ......................................... [ PASS]
equal?: big/flo .......................................... [ PASS]
equal?: big/big .......................................... [ PASS]
equal?: big/big2 ......................................... [ PASS]
equal?: !big/big ......................................... [ PASS]
equal?: rat/flo .......................................... [ PASS]
equal?: rat/rat .......................................... [ PASS]
equal?: !rat/rat ......................................... [ PASS]
equal?: comp/comp ........................................ [ PASS]
equal?: !comp/comp ....................................... [ PASS]
equal?: nan/nan .......................................... [ PASS]
equal?: nan+nan/nan+nan .................................. [ PASS]
18 tests completed in 0.002 seconds.
18 out of 18 (100%) tests passed.
-- done testing generic equality ---------------------------------
-- testing greater -----------------------------------------------
>: fix/fix ............................................... [ PASS]
>: !fix/fix .............................................. [ PASS]
>: fix/flo ............................................... [ PASS]
>: !fix/flo .............................................. [ PASS]
>: fix/big ............................................... [ PASS]
>: !fix/big .............................................. [ PASS]
>: fix/rat ............................................... [ PASS]
>: !fix/rat .............................................. [ PASS]
>: flo/fix ............................................... [ PASS]
>: !flo/fix .............................................. [ PASS]
>: flo/flo ............................................... [ PASS]
>: !flo/flo .............................................. [ PASS]
>: flo/big ............................................... [ PASS]
>: flo/big (flo overflow) ................................ [ PASS]
>: !flo/big .............................................. [ PASS]
>: flo/rat ............................................... [ PASS]
>: !flo/rat .............................................. [ PASS]
>: big/fix ............................................... [ PASS]
>: !big/fix .............................................. [ PASS]
>: big/flo ............................................... [ PASS]
>: big/flo (flo overflow) ................................ [ PASS]
>: !big/flo .............................................. [ PASS]
>: big/big ............................................... [ PASS]
>: !big/big .............................................. [ PASS]
>: big/rat ............................................... [ PASS]
>: !big/rat .............................................. [ PASS]
>: rat/fix ............................................... [ PASS]
>: !rat/fix .............................................. [ PASS]
>: rat/flo ............................................... [ PASS]
>: !rat/flo .............................................. [ PASS]
>: !rat/big .............................................. [ PASS]
>: rat/rat ............................................... [ PASS]
>: !rat/rat .............................................. [ PASS]
33 tests completed in 0.002 seconds.
33 out of 33 (100%) tests passed.
-- done testing greater ------------------------------------------
-- testing less --------------------------------------------------
<: !fix/fix .............................................. [ PASS]
<: fix/fix ............................................... [ PASS]
<: !fix/flo .............................................. [ PASS]
<: fix/flo ............................................... [ PASS]
<: !fix/big .............................................. [ PASS]
<: fix/big ............................................... [ PASS]
<: !fix/rat .............................................. [ PASS]
<: fix/rat ............................................... [ PASS]
<: !flo/fix .............................................. [ PASS]
<: flo/fix ............................................... [ PASS]
<: !flo/flo .............................................. [ PASS]
<: flo/flo ............................................... [ PASS]
<: !flo/big .............................................. [ PASS]
<: flo/big ............................................... [ PASS]
<: flo/big (flo overflow) ................................ [ PASS]
<: !flo/rat .............................................. [ PASS]
<: flo/rat ............................................... [ PASS]
<: !big/fix .............................................. [ PASS]
<: big/fix ............................................... [ PASS]
<: !big/flo .............................................. [ PASS]
<: big/flo ............................................... [ PASS]
<: big/flo (max flo) ..................................... [ PASS]
<: big/flo (max flo, smaller bignum) ..................... [ PASS]
<: !big/big .............................................. [ PASS]
<: big/big ............................................... [ PASS]
<: !big/rat .............................................. [ PASS]
<: big/rat ............................................... [ PASS]
<: !rat/fix .............................................. [ PASS]
<: rat/fix ............................................... [ PASS]
<: !rat/flo .............................................. [ PASS]
<: rat/flo ............................................... [ PASS]
<: rat/big ............................................... [ PASS]
<: !rat/rat .............................................. [ PASS]
<: rat/rat ............................................... [ PASS]
34 tests completed in 0.002 seconds.
34 out of 34 (100%) tests passed.
-- done testing less ---------------------------------------------
-- testing complex -----------------------------------------------
real-part ................................................ [ PASS]
imag-part ................................................ [ PASS]
real-part ................................................ [ PASS]
imag-part ................................................ [ PASS]
make-polar ............................................... 32.9948291853738+0.584163528478648i
[ PASS]
magnitude ................................................ 55.0
[ PASS]
angle .................................................... 0.927295218001612
[ PASS]
7 tests completed in 0.001 seconds.
7 out of 7 (100%) tests passed.
-- done testing complex ------------------------------------------
-- testing rational ----------------------------------------------
numerator ................................................ [ PASS]
numerator ................................................ 2147483668
[ PASS]
numerator ................................................ [ PASS]
denominator .............................................. [ PASS]
denominator .............................................. [ PASS]
denominator .............................................. [ PASS]
6 tests completed in 0 seconds.
6 out of 6 (100%) tests passed.
-- done testing rational -----------------------------------------
-- testing misc --------------------------------------------------
inexact->exact ........................................... [ PASS]
expt ..................................................... [ PASS]
expt ..................................................... 1267650600228229401496703205376
[ PASS]
expt ..................................................... 3.20753432999583
[ PASS]
expt ..................................................... 4.0
[ PASS]
expt ..................................................... 1/2
[ PASS]
expt between double and 64-bit integer value ............. [ PASS]
expt with complex result ................................. [ PASS]
exp with complex numbers ................................. [ PASS]
log of exp = 1 ........................................... [ PASS]
log of -1 ................................................ [ PASS]
bigfac ................................................... 93326215443944152681699238856266700490715968264381621468592963895217599993229915608941463976156518286253697920827223758251185210916864000000000000000000000000
[ PASS]
signum ................................................... [ PASS]
signum ................................................... [ PASS]
14 tests completed in 0.006 seconds.
14 out of 14 (100%) tests passed.
-- done testing misc ---------------------------------------------
-- testing R5RS --------------------------------------------------
+ ........................................................ [ PASS]
+ ........................................................ [ PASS]
+ ........................................................ [ PASS]
* ........................................................ [ PASS]
* ........................................................ [ PASS]
- ........................................................ [ PASS]
- ........................................................ [ PASS]
- ........................................................ [ PASS]
/ (3/20) ................................................. 3/20
[ PASS]
/ (1/3) .................................................. 1/3
[ PASS]
numerator ................................................ [ PASS]
denominator .............................................. [ PASS]
complex? ................................................. [ PASS]
complex? ................................................. [ PASS]
real? .................................................... [ PASS]
real? .................................................... [ PASS]
real? .................................................... [ PASS]
rational? ................................................ [ PASS]
check rational ........................................... 2
[ PASS]
rational? ................................................ [ PASS]
integer? ................................................. [ PASS]
integer? ................................................. [ PASS]
integer? ................................................. [ PASS]
max ...................................................... [ PASS]
max ...................................................... [ PASS]
modulo ................................................... [ PASS]
remainder ................................................ [ PASS]
modulo ................................................... [ PASS]
remainder ................................................ [ PASS]
modulo ................................................... [ PASS]
remainder ................................................ [ PASS]
modulo ................................................... [ PASS]
remainder ................................................ [ PASS]
remainder ................................................ [ PASS]
floor .................................................... [ PASS]
ceiling .................................................. [ PASS]
truncate ................................................. [ PASS]
round .................................................... [ PASS]
floor .................................................... [ PASS]
ceiling .................................................. [ PASS]
truncate ................................................. [ PASS]
round .................................................... [ PASS]
round .................................................... [ PASS]
round .................................................... [ PASS]
round .................................................... [ PASS]
rationalize (1/3) ........................................ 1/3
[ PASS]
rationalize (#i1/3) ...................................... 1/3
[ PASS]
47 tests completed in 0.003 seconds.
47 out of 47 (100%) tests passed.
-- done testing R5RS ---------------------------------------------
-- testing bitwise ops -------------------------------------------
and ...................................................... [ PASS]
ior ...................................................... [ PASS]
xor ...................................................... [ PASS]
not ...................................................... -16
[ PASS]
shift left ............................................... [ PASS]
shift right .............................................. [ PASS]
leftrot32 28 ............................................. [ PASS]
leftrot32 29 ............................................. [ PASS]
leftrot32 30 ............................................. [ PASS]
9 tests completed in 0.001 seconds.
9 out of 9 (100%) tests passed.
-- done testing bitwise ops --------------------------------------
-- testing string conversion -------------------------------------
fix ...................................................... [ PASS]
fix/base ................................................. [ PASS]
flo ...................................................... [ PASS]
big ...................................................... [ PASS]
big/base ................................................. [ PASS]
rat ...................................................... [ PASS]
comp ..................................................... [ PASS]
fix ...................................................... [ PASS]
fix/base ................................................. [ PASS]
fix/base-o ............................................... [ PASS]
fix/unusual-base ......................................... [ PASS]
fix/wrong-base ........................................... [ PASS]
flo ...................................................... [ PASS]
flo2 ..................................................... [ PASS]
big ...................................................... 123873487384737447
[ PASS]
big/neg .................................................. -123873487384737447
[ PASS]
big/pos .................................................. 123873487384737447
[ PASS]
rat ...................................................... 41/152
[ PASS]
rat/neg .................................................. -41/152
[ PASS]
rat/pos .................................................. 41/152
[ PASS]
rat2 ..................................................... 83/302
[ PASS]
rat/inexact .............................................. 0.269736842105263
[ PASS]
invalid rat .............................................. [ PASS]
comp ..................................................... 0+12i
[ PASS]
comp ..................................................... 12+34i
[ PASS]
comp ..................................................... 0-1i
[ PASS]
comp ..................................................... 2.19054886993362-98.9757621625034i
[ PASS]
comp2 .................................................... 153+85i
[ PASS]
28 tests completed in 0.003 seconds.
28 out of 28 (100%) tests passed.
-- done testing string conversion --------------------------------
-- testing non-standard type procedures --------------------------
fixnum ................................................... [ PASS]
bignum ................................................... [ PASS]
bignum ................................................... [ PASS]
ratnum ................................................... [ PASS]
nan: fix ................................................. [ PASS]
nan: flo ................................................. [ PASS]
nan: +inf ................................................ [ PASS]
nan: -inf ................................................ [ PASS]
nan: nan ................................................. [ PASS]
nan: nan+nani ............................................ [ PASS]
nan: flo+nani ............................................ [ PASS]
nan: nan+floi ............................................ [ PASS]
finite: fix .............................................. [ PASS]
finite: flo .............................................. [ PASS]
finite: +inf ............................................. [ PASS]
finite: -inf ............................................. [ PASS]
finite: nan .............................................. [ PASS]
finite: nan+floi ......................................... [ PASS]
finite: inf+infi ......................................... [ PASS]
finite: flo+infi ......................................... [ PASS]
finite: inf+floi ......................................... [ PASS]
infinite: fix ............................................ [ PASS]
infinite: flo ............................................ [ PASS]
infinite: +inf ........................................... [ PASS]
infinite: -inf ........................................... [ PASS]
infinite: nan ............................................ [ PASS]
infinite: inf+infi ....................................... [ PASS]
infinite: flo+infi ....................................... [ PASS]
infinite: inf+floi ....................................... [ PASS]
cplxnum: compintintnum ................................... [ PASS]
cplxnum: compintflointnum ................................ [ PASS]
cplxnum: compflointnum ................................... [ PASS]
cplxnum: compfloflonum ................................... [ PASS]
not cplxnum: fixnum ...................................... [ PASS]
rectnum: compintintnum ................................... [ PASS]
rectnum: compintflointnum ................................ [ PASS]
not rectnum: compflointum ................................ [ PASS]
compnum: compfloflonum ................................... [ PASS]
compnum: compflointnum ................................... [ PASS]
not compnum: compintintnum ............................... [ PASS]
cintnum: intflonum ....................................... [ PASS]
cintnum: fixnum .......................................... [ PASS]
cintnum: bignum .......................................... [ PASS]
cintnum: compintintnum ................................... [ PASS]
cflonum: intflonum ....................................... [ PASS]
cflonum: flonum .......................................... [ PASS]
cflonum: compfloflonum ................................... [ PASS]
cflonum: compfloflonum ................................... [ PASS]
48 tests completed in 0.003 seconds.
48 out of 48 (100%) tests passed.
-- done testing non-standard type procedures ---------------------
20 subgroups completed in 0.049 seconds.
20 out of 20 (100%) subgroups passed.
-- done testing numbers ----------------------------------------------
1 subgroup completed in 0.049 seconds.
1 out of 1 (100%) subgroup passed.
-- done testing Basic numbers tests --------------------------------------
-- testing Numbers tests by Alex Shinn -----------------------------------
-- testing numbers (Alex Shinn's tests) ------------------------------
-- testing basic cases, fixnum base ------------------------------
(expt 0 0) ............................................... [ PASS]
(expt 2 0) ............................................... [ PASS]
(expt 2 1) ............................................... [ PASS]
(expt 2 2) ............................................... [ PASS]
(expt 3 2) ............................................... [ PASS]
(expt 3 2.0) ............................................. [ PASS]
(expt 3 2.1) ............................................. [ PASS]
(expt 3 0.1) ............................................. [ PASS]
(expt 3 -1) .............................................. [ PASS]
(expt 3 -2) .............................................. [ PASS]
(expt 3 -2.1) ............................................ [ PASS]
11 tests completed in 0.001 seconds.
11 out of 11 (100%) tests passed.
-- done testing basic cases, fixnum base -------------------------
-- testing basic cases, flonum base ------------------------------
(expt 0.0 0) ............................................. [ PASS]
(expt 3.14 0) ............................................ [ PASS]
(expt 3.14 1) ............................................ [ PASS]
(expt 3.14 2) ............................................ [ PASS]
(expt 3.14 2.0) .......................................... [ PASS]
(expt 3.14 2.1) .......................................... [ PASS]
(expt 3.14 0.1) .......................................... [ PASS]
(expt 3.14 -1) ........................................... [ PASS]
(expt 3.14 -2) ........................................... [ PASS]
(expt 3.14 -2.1) ......................................... [ PASS]
10 tests completed in 0.001 seconds.
10 out of 10 (100%) tests passed.
-- done testing basic cases, flonum base -------------------------
-- testing overflows into bignums --------------------------------
(expt 2 30) .............................................. [ PASS]
(expt 2 31) .............................................. [ PASS]
(expt 2 32) .............................................. [ PASS]
(expt 2 62) .............................................. [ PASS]
(expt 2 63) .............................................. [ PASS]
(expt 2 64) .............................................. [ PASS]
6 tests completed in 0.001 seconds.
6 out of 6 (100%) tests passed.
-- done testing overflows into bignums ---------------------------
-- testing bug reported on the chicken list ----------------------
(expt 10 100) ............................................ [ PASS]
1 test completed in 0 seconds.
1 out of 1 (100%) test passed.
-- done testing bug reported on the chicken list -----------------
-- testing bignum base -------------------------------------------
(expt (one-followed-by-n-zeros 100) 0) ................... [ PASS]
(expt (one-followed-by-n-zeros 100) 1) ................... [ PASS]
(expt (one-followed-by-n-zeros 100) 2) ................... [ PASS]
(expt (one-followed-by-n-zeros 100) 0.1) ................. [ PASS]
4 tests completed in 0.001 seconds.
4 out of 4 (100%) tests passed.
-- done testing bignum base --------------------------------------
-- testing e^(pi*i) = -1 -----------------------------------------
(expt (exp 1) (* (acos -1) (sqrt -1))) ................... [ PASS]
1 test completed in 0 seconds.
1 out of 1 (100%) test passed.
-- done testing e^(pi*i) = -1 ------------------------------------
-- testing rational rounding -------------------------------------
(round (/ 9 10)) ......................................... [ PASS]
(round (/ 6 10)) ......................................... [ PASS]
(round (/ 5 10)) ......................................... [ PASS]
(round (/ 1 10)) ......................................... [ PASS]
(round (/ 0 10)) ......................................... [ PASS]
(round (/ -1 10)) ........................................ [ PASS]
(round (/ -5 10)) ........................................ [ PASS]
(round (/ -6 10)) ........................................ [ PASS]
(round (/ -9 10)) ........................................ [ PASS]
(round (/ (expt 10 10000) (+ (expt 10 10000) 1))) ........ [ PASS]
(round (/ (+ 1 (expt 10 10000)) (expt 10 100))) ..........
Error: unbound variable: ir-macro-transformer
Call history:
<syntax> (##core#quote ())
<syntax> (##core#quote ())
<syntax> (##core#quote ())
<syntax> (##core#quote ())
<syntax> (##core#quote ())
<syntax> (##core#quote ())
<syntax> (cadr e)
<eval> (ir-macro-transformer (lambda (e r c) (let ((op (cadr e))) (quasiquote (begin (test (format "NaN ~a ... <--
[ PASS]
11 tests completed in 0.017 seconds.
11 out of 11 (100%) tests passed.
-- done testing rational rounding --------------------------------
7 subgroups completed in 0.021 seconds.
7 out of 7 (100%) subgroups passed.
-- done testing numbers (Alex Shinn's tests) -------------------------
1 subgroup completed in 0.021 seconds.
1 out of 1 (100%) subgroup passed.
-- done testing Numbers tests by Alex Shinn ------------------------------