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

Function test_clear

tests/test_coverage_sortedset.py:258–263  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

256 assert all(temp.bisect_key_right(val) == (val + 1) for val in range(100))
257
258def test_clear():
259 temp = SortedSet(range(100))
260 temp._reset(7)
261 temp.clear()
262 temp._check()
263 assert len(temp) == 0
264
265def test_copy():
266 temp = SortedSet(range(100))

Callers

nothing calls this directly

Calls 4

clearMethod · 0.95
_checkMethod · 0.95
SortedSetClass · 0.90
_resetMethod · 0.45

Tested by

no test coverage detected