-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
fix(seq): handle 0e... scientific notation without padding #6934
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
fix(seq): handle 0e... scientific notation without padding #6934
Conversation
e8b1ce7
to
ea2469e
Compare
GNU testsuite comparison:
|
- Updated the parse_exponent_no_decimal function to treat 0e... as zero. - Added test cases to verify correct behavior for 0e15 and -w 0e15. Fix: uutils#6926
ea2469e
to
3126e4a
Compare
GNU testsuite comparison:
|
I don't know if you have seen it: the changes break
|
Sorry. I was looking at the integration test, but I must have missed the unit test. I fixed it. |
No problem :) Can you please run |
Thank you for the attention. I seem to have gotten impatient, I didn't follow the DEVELOPMENT.md procedure. |
GNU testsuite comparison:
|
Thanks for your PR! |
Fix: #6926
This pull request fixes the issue where
seq
mishandles scientific notation in the form of0e...
by treating it as zero.Note;
While testing with
bash util/run-gnu-test.sh
, I discovered another bug unrelated to this fix. I will file a new issue.cargo run -q seq 0x1p-1 2 seq: invalid hexadecimal argument: '0x1p-1'