Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test: Test IEEE754 comparison for Inf, NaN and Zeroes #157

Open
okuoku opened this issue Jul 11, 2020 · 2 comments
Open

test: Test IEEE754 comparison for Inf, NaN and Zeroes #157

okuoku opened this issue Jul 11, 2020 · 2 comments

Comments

@okuoku
Copy link
Owner

okuoku commented Jul 11, 2020

ref: chibi-scheme issue 667

  • comparison test should cover: Flonum, Fixnum, Zeroes

Inf

  • Implementations must support both infinite objects (Plus and Minus)
  • +inf.0 > -inf.0

NaN

  • is an inexact number
  • in unordered for any given number arguments; any comparison, positive? and negative? must return #f if it included NaN as argument
  • (Yuni does not support rational nor complex numbers)

Zero

  • Plus zero and minus zero is optional; SIBR?
  • Plus Zero equals Minus Zero
  • (1.0 / +0) should be +inf.0 , (1.0 / -0) should be -inf.0
@okuoku
Copy link
Owner Author

okuoku commented Mar 15, 2021

xref: #163

@okuoku
Copy link
Owner Author

okuoku commented Aug 24, 2021

ref: shirok/Gauche@9a9b635

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant