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

Function test_pop

tests/test_coverage_sortedset.py:407–412  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

405 assert all(temp[val + 25] == (val + 75) for val in range(25))
406
407def test_pop():
408 temp = SortedSet(range(0, 100))
409 temp._reset(7)
410 temp.pop()
411 temp.pop(0)
412 assert all(temp[val] == (val + 1) for val in range(98))
413
414def test_remove():
415 temp = SortedSet(range(0, 100))

Callers

nothing calls this directly

Calls 3

popMethod · 0.95
SortedSetClass · 0.90
_resetMethod · 0.45

Tested by

no test coverage detected