Commit graph

36 commits

Author SHA1 Message Date
Alex Shinn
4ef6c57d3e propagating #i prefix across radix prefixes (issue #706) 2020-09-22 17:37:22 +09:00
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
Alex Shinn
f74c34b99b make-promise is idempotent (issue #625) 2020-04-10 17:17:29 +09:00
Alex Shinn
48d6c35548 nans aren't rational 2020-01-02 22:40:49 +08:00
Alex Shinn
c174465aa1 fix rational? for some boundary cases 2020-01-02 22:35:33 +08:00
Alex Shinn
72971fd4f4 pipes should be escaped in symbols (fixes issue #571) 2019-09-23 11:53:54 +08:00
Vasilij Schneidermann
ab39f12904 Consider unterminated strings as read-error 2019-05-17 10:55:22 +02:00
Alex Shinn
26ceb64434 fix exact neg check for ratio in rounding (issue #539) 2019-05-03 00:37:30 +08:00
Hamayama
fdc1f86f09 Fix syntax-rules on ellipsis escape templates 2018-07-03 12:41:00 +09:00
John Croisant
42dd447a06 Raise error if apply is called with invalid args.
* If called with only the procedure, but no args list.
* If called with a final arg that is not a proper list.
2018-04-14 20:49:03 -05:00
Hamayama
ae85ef2980 Several changes of syntax-rules in init-7.scm 2017-12-30 09:46:51 +09:00
Alex Shinn
e4eadba355 sprintf precision ranges from 15 to 17 2017-10-22 22:24:15 +09:00
Alex Shinn
f83bc9969b adding single precision numeric representations in r7rs-tests 2017-08-30 23:09:43 +09:00
Alex Shinn
a5066eaec6 adding alternate representations of floats in read/write precision tests 2017-08-28 22:48:28 +09:00
Alex Shinn
4a7a809c8d distinguishing lowercase and foldcase (fixes issue #420) 2017-08-27 14:10:05 +09:00
Alex Shinn
d9a40fbc61 conditionally using 17 digits of precision in flonum output when needed 2017-08-26 21:35:43 +09:00
Alex Shinn
e3678edbdc Identifiers in patterns should be checked against literals using bound-identifier=?, not free-identifier=?. 2017-07-22 19:50:56 +09:00
Alex Shinn
db186784e3 don't include underscore in ellipsis pattern vars (issue #421) 2017-07-02 22:10:03 +09:00
Alex Shinn
da410523b0 fixing peek-char on non-ascii chars 2017-06-26 22:23:38 +09:00
Alex Shinn
ae1a2aa6be match undefined hygienically wrapper forward refs on define (fixes issue #399) 2017-03-26 21:16:36 +09:00
Alex Shinn
2f1b730f65 strip syntactic-closures in quoted vectors (fixes issue #389) 2017-01-14 16:34:16 +09:00
Marc Nieper-Wißkirchen
7197accf1f fixed let(*)-values when no bindings are given 2017-01-10 22:59:00 +01:00
Alex Shinn
9fa8d8c1f0 Don't treat underscore as a pattern variable. Fixes issue #382. 2017-01-01 09:48:34 +09:00
Alex Shinn
71f4db7d17 don't strip syntax for unknown refs 2016-12-30 10:53:22 +09:00
Alex Shinn
d0cb74bef4 Identifiers in the template should only match pattern variables
from the same expansion step.  Fixes issue #366.
2016-06-25 15:20:39 +09:00
Alex Shinn
8359b48a59 commenting out complex asin tests 2016-06-08 07:24:03 +09:00
Alex Shinn
7cb15a7191 Handling exact zero imaginary parts in complex asin.
Fixes issue #350.
2016-06-05 22:25:18 +09:00
Alex Shinn
7f22b61cf2 removing non-portable passing of improper list to macro
Fixes issue #318.
2016-04-02 18:10:44 +09:00
Alex Shinn
fec1016254 Fix for additional edge cases in escaping symbols on output. 2016-03-19 15:01:05 +09:00
Alex Shinn
55257b75e3 Write should pipe-escape symbols beginning with a number.
Fixes issue #316.
2016-03-14 09:09:00 +09:00
Alex Shinn
22bfa48698 fix escaping |.| on write, and funny symbols in srfi 38 in general 2016-03-13 09:33:24 +09:00
Alex Shinn
1f5d816f59 let[rec]-syntax should not splice 2016-02-22 23:05:12 +09:00
Alexis King
c5f24c64ce Allow asin and acos to return an exact zero result in the R7RS tests 2015-10-31 18:10:58 -07:00
Alex Shinn
eab76ce8c1 Fixing #; comments as the last element in a list for (scheme read). 2015-06-13 21:57:31 +09:00
Alex Shinn
2db64f67f8 Fixing typo in r7rs-tests.
Was testing be-like-begin1 twice instead of be-like-begin2.
2015-03-12 22:39:43 +09:00
Alex Shinn
2922ed591d Forgot to install regexp (patch from Lorenzo) 2015-01-26 08:06:59 +09:00