MCPcopy Create free account
hub / github.com/grantjenks/python-sortedcontainers / test_discard

Function test_discard

tests/test_coverage_sortedset.py:319–327  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

317 assert all((val + 20) == temp[val] for val in range(80))
318
319def test_discard():
320 temp = SortedSet(range(100))
321 temp._reset(7)
322 temp.discard(0)
323 temp.discard(99)
324 temp.discard(50)
325 temp.discard(1000)
326 temp._check()
327 assert len(temp) == 97
328
329def test_index():
330 temp = SortedSet(range(100))

Callers

nothing calls this directly

Calls 4

discardMethod · 0.95
_checkMethod · 0.95
SortedSetClass · 0.90
_resetMethod · 0.45

Tested by

no test coverage detected