()
| 276 | assert temp.setdefault('A', -1) == -1 |
| 277 | |
| 278 | def test_update(): |
| 279 | mapping = [(val, pos) for pos, val in enumerate(string.ascii_lowercase)] |
| 280 | temp = SortedDict() |
| 281 | temp.update() |
| 282 | temp.update(mapping) |
| 283 | temp.update(dict(mapping)) |
| 284 | temp.update(mapping[5:7]) |
| 285 | assert list(temp.items()) == mapping |
| 286 | |
| 287 | def test_update2(): |
| 288 | mapping = [(val, pos) for pos, val in enumerate(string.ascii_lowercase)] |
nothing calls this directly
no test coverage detected