Closed dezyh closed 10 months ago
In retrospect, I noticed the infinite float values are actually comparable to themselves ("Infinite operands of the same sign shall compare equal") (unlike NaN
), so we could move all the infinity variants into the main test_cases
which makes my refactoring changes a little redundant.
Let me know what you think.
In retrospect, I noticed the infinite float values are actually comparable to themselves ("Infinite operands of the same sign shall compare equal") (unlike
NaN
), so we could move all the infinity variants into the maintest_cases
which makes my refactoring changes a little redundant.Let me know what you think.
I can go either way on this
Fixes
winnow::ascii::float
not matching any variants ofinf
/infinite
prefixed by a+
/-
sign as mentioned in https://github.com/winnow-rs/winnow/issues/411.