chibi-scheme/tests
Kris Katterjohn eb9d632dbf Fix some NaN comparisons: NaNs are not less than every fixnum
(< +nan.0 n) was yielding #t for fixnum n, and similarly for
(<= +nan.0 n) and (> n +nan.0) and so on.  This also caused
(negative? +nan.0) to return #t.

It just happened that NaNs were less than all fixnums: if a
conditional was written the other way around then NaNs would
have been greater than all fixnums instead.

The flonum case was sort of "accidentally" correct, but if a
conditional was written the other way around then NaNs would
be both less than or equal to and greater than all or equal
to all flonums (but still not equal).

For both cases check for NaNs after getting the flonum values.
2020-07-10 16:49:56 -04:00
..
basic Forgot to install regexp (patch from Lorenzo) 2015-01-26 08:06:59 +09:00
build fixing test-build on static exe 2020-06-08 11:59:16 +09:00
ffi adding ffi test with unsigned-char param 2020-01-27 22:19:51 +08:00
foreign Forgot to install regexp (patch from Lorenzo) 2015-01-26 08:06:59 +09:00
install Forgot to install regexp (patch from Lorenzo) 2015-01-26 08:06:59 +09:00
memory updating trace in oom tests 2018-01-25 00:11:44 +09:00
run -R needs interpreter name, not SRFI 22 2019-01-01 23:18:49 +08:00
snow Fixing snow doc extraction for multiple levels of includes. 2017-01-19 23:58:09 +09:00
division-tests.scm Add regression tests for remainder with infinity. 2018-03-15 21:48:19 -05:00
lib-tests.scm remove duplicate tests 2020-06-27 07:13:07 +09:00
r5rs-tests.scm Forgot to install regexp (patch from Lorenzo) 2015-01-26 08:06:59 +09:00
r7rs-tests.scm Fix some NaN comparisons: NaNs are not less than every fixnum 2020-07-10 16:49:56 -04:00
re-tests.txt Forgot to install regexp (patch from Lorenzo) 2015-01-26 08:06:59 +09:00
syntax-tests.scm restoring renaming of ... 2016-03-05 00:28:09 +09:00
unicode-tests.scm Forgot to install regexp (patch from Lorenzo) 2015-01-26 08:06:59 +09:00