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

Bug: get_prev returns incorrect results #205

Open
bojanserafimov opened this issue Jan 24, 2023 · 0 comments
Open

Bug: get_prev returns incorrect results #205

bojanserafimov opened this issue Jan 24, 2023 · 0 comments

Comments

@bojanserafimov
Copy link

Judging by docstrings, for any m: OrdMap, m.get_prev(&key) should return the same results as m.range(..=key).next_back(). But that's not the case, and get_prev sometimes returns None where range returns Some.

I created a repo that reproduces the problem. Hopefully you find it helpful for debugging: https://github.com/bojanserafimov/im_crate_bug_report

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

1 participant