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

SRFI-144: accept zero arguments for flmax/flmin #832

Merged
merged 2 commits into from
May 15, 2022

Conversation

jpellegrini
Copy link
Contributor

SRFI-144 requires that (flmin) returns +inf.0 and that (flmax) returns -inf.0 when infinities are supported, so these procedures can't really be aliases to the Chibi implementation of R7RS max and min.

SRFI-144 requires that (flmin) returns +inf.0 and that
(flmax) returns -inf.0, so these procedures can't really
be aliases to the Chibi implementation of R7RS max and min.
@ashinn
Copy link
Owner

ashinn commented May 15, 2022

Could you add a unit test while you're at it? Thanks!

Tests for flmin, flmax, fl-least, fl-epsilon, fl-greatest are
included.
@jpellegrini
Copy link
Contributor Author

Could you add a unit test while you're at it? Thanks!

Sure, just added some.

@ashinn ashinn merged commit bf225ed into ashinn:master May 15, 2022
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

Successfully merging this pull request may close these issues.

2 participants