()
| 280 | assert len(that) == 101 |
| 281 | |
| 282 | def test_count(): |
| 283 | temp = SortedSet(range(100)) |
| 284 | temp._reset(7) |
| 285 | assert all(temp.count(val) == 1 for val in range(100)) |
| 286 | assert temp.count(100) == 0 |
| 287 | assert temp.count(0) == 1 |
| 288 | temp.add(0) |
| 289 | assert temp.count(0) == 1 |
| 290 | temp._check() |
| 291 | |
| 292 | def test_sub(): |
| 293 | temp = SortedSet(range(100)) |