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

small decimals #10

Closed
szymonk92 opened this issue Dec 20, 2021 · 2 comments · Fixed by #11
Closed

small decimals #10

szymonk92 opened this issue Dec 20, 2021 · 2 comments · Fixed by #11
Assignees
Labels
bug Something isn't working
Milestone

Comments

@szymonk92
Copy link

While testing, I came across issue with small numbers, first list works fine:
Arrays.asList(".3", "0.6", "0.7", "0.8", "0.9", "1.0", "1.0b", "1.0c", "1.1", "1.2", "1.3");
However, adding .00003 as first number breaks the sorting and returns:

java.lang.AssertionError: 
Expected :[0.00003, 0.3, 0.6, 0.7, 0.8, 0.9, 1.0, 1.0b, 1.0c, 1.1, 1.2, 1.3]
Actual   :[0.6, 0.7, 0.8, 0.9, 0.00003, 0.3, 1.0, 1.0b, 1.0c, 1.1, 1.2, 1.3]
@616slayer616
Copy link
Owner

Thank you for your submission.
I will have a look at it.

@616slayer616 616slayer616 self-assigned this Dec 30, 2021
@616slayer616 616slayer616 added the bug Something isn't working label Dec 30, 2021
@616slayer616 616slayer616 linked a pull request Dec 30, 2021 that will close this issue
616slayer616 added a commit that referenced this issue Dec 30, 2021
@616slayer616
Copy link
Owner

Do you want to have a look at this? #11

616slayer616 added a commit that referenced this issue Dec 30, 2021
616slayer616 added a commit that referenced this issue Jan 1, 2022
@616slayer616 616slayer616 added this to the 1.1.2 milestone Jan 1, 2022
616slayer616 added a commit that referenced this issue Jan 1, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants