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

Improve the formatting API. #161

Merged
merged 1 commit into from
Sep 24, 2024
Merged

Improve the formatting API. #161

merged 1 commit into from
Sep 24, 2024

Conversation

Alexhuszagh
Copy link
Owner

This addressed #96 and #97, fixing the lack of processing with consecutive digit separators by enhancing the internal logic, adds logic for internal and first digit separators to simplify logic and improve performance, fix unittests, and also make it so the errors are consistent by adding checks when formatting is enabled to ensure the correct logic is used.

Closes #96
Closes #97

This addressed #96 and #97, fixing the lack of processing with
consecutive digit separators by enhancing the internal logic, adds logic
for internal and first digit separators to simplify logic and improve
performance, fix unittests, and also make it so the errors are
consistent by adding checks when formatting is enabled to ensure the
correct logic is used.

Closes #96
Closes #97
@Alexhuszagh Alexhuszagh added bug Something isn't working high priority High priority format affects the formatting API labels Sep 24, 2024
@Alexhuszagh Alexhuszagh added this to the 1.0.2 milestone Sep 24, 2024
@Alexhuszagh
Copy link
Owner Author

Alexhuszagh commented Sep 24, 2024

I've also added in extensive unittests for the formatting API including with the comprehensive tests to ensure the new changes and performance enhancements don't affect correctness. The Go unittest cases now also have digit separator cases, which are toggled by the digit-separator feature, and both are tested in CI.

A large amount of work went into making sure these changes wouldn't affect anything without the formatting API nor when using contiguous iterators with the formatting API.

@Alexhuszagh Alexhuszagh merged commit eb3eb29 into main Sep 24, 2024
39 of 40 checks passed
@Alexhuszagh Alexhuszagh deleted the issue_96 branch September 24, 2024 03:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working format affects the formatting API high priority High priority
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[BUG] Inconsistent error between int and float parsing [BUG] consecutive_digit_separator has no effect
1 participant