im-rs icon indicating copy to clipboard operation
im-rs copied to clipboard

Bug: `get_prev` returns incorrect results

Open bojanserafimov opened this issue 2 years ago • 0 comments

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

bojanserafimov avatar Jan 24 '23 22:01 bojanserafimov