Closed bartwe closed 2 years ago
It does use the result. It destructures the result and only selects the key ignoring the other parts of the result. This is sufficient for the test. I reviewed all uses of GetCurrent and found similar outcomes. Let me know if there is a problem you see specifically that I've overlooked.
A number of testcases like ShouldAdvanceKeyToClosestWhenKeyNotFound call GetCurrent() but do not assert the result.