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

Function test_add

tests/test_coverage_sortedset.py:236–242  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

234 assert len(temp) == 100
235
236def test_add():
237 temp = SortedSet(range(100))
238 temp._reset(7)
239 temp.add(100)
240 temp.add(90)
241 temp._check()
242 assert all(val == temp[val] for val in range(101))
243
244def test_bisect():
245 temp = SortedSet(range(100))

Callers

nothing calls this directly

Calls 4

addMethod · 0.95
_checkMethod · 0.95
SortedSetClass · 0.90
_resetMethod · 0.45

Tested by

no test coverage detected