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

Function test_delitem

tests/test_coverage_sortedset.py:52–57  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

50 assert all(temp[val] == (99 - val) for val in range(100))
51
52def test_delitem():
53 temp = SortedSet(range(100))
54 temp._reset(7)
55 for val in reversed(range(50)):
56 del temp[val]
57 assert all(temp[pos] == (pos + 50) for pos in range(50))
58
59def test_delitem_slice():
60 vals = list(range(100))

Callers

nothing calls this directly

Calls 2

SortedSetClass · 0.90
_resetMethod · 0.45

Tested by

no test coverage detected