()
| 312 | assert repr(temp) == "CustomSortedDict({'alice': 3, 'bob': 1, 'carol': 2, 'dave': 4})" |
| 313 | |
| 314 | def test_index(): |
| 315 | mapping = [(val, pos) for pos, val in enumerate(string.ascii_lowercase)] |
| 316 | temp = SortedDict(mapping) |
| 317 | assert temp.index('a') == 0 |
| 318 | assert temp.index('f', 3, -3) == 5 |
| 319 | |
| 320 | def test_iloc(): |
| 321 | with warnings.catch_warnings(): |
nothing calls this directly
no test coverage detected