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

introduce a workround for float parsing #1455

Merged
merged 1 commit into from
Nov 3, 2021
Merged

Conversation

Geal
Copy link
Collaborator

@Geal Geal commented Nov 2, 2021

this will afford some time until we get a proper fix with minimal lexical for floats that are to large

not cleaned up yet

Fixes #1384 and #1421

@coveralls
Copy link

coveralls commented Nov 2, 2021

Coverage Status

Coverage decreased (-1.5%) to 79.556% when pulling 66a77a2 on workaround-float-issues into 02433c2 on main.

this will afford some time until we get a proper fix with minimal
lexical for floats that are to large
Comment on lines +2109 to +2110
let (_i, inf) = float::<_, ()>("infinite").unwrap();
assert!(inf.is_infinite());
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this test should fail cause it's only eat 'inf' and not 'infinite' https://github.com/Geal/nom/pull/1391/files# parse infinity before inf cause of this

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.

Updating to Nom 7 has broken double("NaN")
3 participants