seanjensengrey / mosh-scheme

Automatically exported from code.google.com/p/mosh-scheme
Other
0 stars 0 forks source link

finite? returns #t when applied to nan #215

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Evaluate:

(finite? +nan.0)

What is the expected output? What do you see instead?
It should evaluate to #f.  It evaluates to #t.

What version of the product are you using? On what operating system?
Mosh R6RS scheme interpreter, version 0.2.7 (mosh-0.2.7-327-g89fb1db 2011/06/18 
15:42:19).

Please provide any additional information below.
R6RS explicitly states that FINITE? must return #f when applied to nan.

Original issue reported on code.google.com by mrc....@gmail.com on 19 Jun 2011 at 6:41

GoogleCodeExporter commented 9 years ago
Fixed.
https://github.com/higepon/mosh/commit/2dc1bd5d2b8adb2a7817825421a27920ded56426

Thank you!

Original comment by hige...@gmail.com on 20 Jun 2011 at 11:31

GoogleCodeExporter commented 9 years ago
Sorry for the incomplete report: flfinite? has the same bug.

Original comment by mrc....@gmail.com on 21 Jun 2011 at 6:40

GoogleCodeExporter commented 9 years ago
Sorry. Fixed.
https://github.com/higepon/mosh/commit/b95f4f7ab5476a6078543f30f52bec7fe6d059a9

Original comment by hige...@gmail.com on 21 Jun 2011 at 12:46