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

Negative keys mess up items order #2

Open
mpawlucz opened this issue Jul 26, 2020 · 1 comment
Open

Negative keys mess up items order #2

mpawlucz opened this issue Jul 26, 2020 · 1 comment

Comments

@mpawlucz
Copy link

Minimal test suite:
1ed0dfc#diff-be53423b7e6ad6ccb0e9c4bf8db7d41c

orig
-4429196230935817217: -4429196230935817217
2967034165565055791: 2967034165565055791
3969304394476946051: 3969304394476946051
5502623383577302445: 5502623383577302445

tested
3969304394476946051: 3969304394476946051
5502623383577302445: 5502623383577302445
-4429196230935817217: -4429196230935817217
2967034165565055791: 2967034165565055791

┬─37────────────[15CD51063202]83 = 3969304394476946051
│   
├─4C────────────[5D3ED02EE215]AD = 5502623383577302445
│   
├─C2────────────[88557EAE9253]FF = -4429196230935817217
│   
└─29────────────[2D05DA82F3E3]2F = 2967034165565055791

Also there is a duplicate internal node entry in root node for given input
Arrays.asList(1L, 2L, -3L, 4L, 2967034165565055791L, 3969304394476946051L, 5502623383577302445L)

┬─00────────────[000000000000]04 = 4
│   
├─29────────────[2D05DA82F3E3]2F = 2967034165565055791
│   
├─37────────────[15CD51063202]83 = 3969304394476946051
│   
├─4C────────────[5D3ED02EE215]AD = 5502623383577302445
│   
├─FF────────────[FFFFFFFFFFFF]FD = -3
│   
└─00┬───────────[000000000000]01 = 1
    └───────────[000000000000]02 = 2
@mzheravin
Copy link
Contributor

Thanks for reporting that. Never tested negatives due to specific usage. Will fix that.

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

No branches or pull requests

2 participants