()
| 337 | assert all(temp.index(val) == (99 - val) for val in range(100)) |
| 338 | |
| 339 | def test_bisect(): |
| 340 | mapping = [(val, pos) for pos, val in enumerate(string.ascii_lowercase)] |
| 341 | temp = SortedDict(mapping) |
| 342 | assert temp.bisect_left('a') == 0 |
| 343 | assert temp.bisect_right('f') == 6 |
| 344 | assert temp.bisect('f') == 6 |
| 345 | |
| 346 | def test_bisect_key(): |
| 347 | temp = SortedDict(modulo, ((val, val) for val in range(100))) |
nothing calls this directly
no test coverage detected