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

Function test_index

tests/test_coverage_sortedset.py:329–332  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

327 assert len(temp) == 97
328
329def test_index():
330 temp = SortedSet(range(100))
331 temp._reset(7)
332 assert all(temp.index(val) == val for val in range(100))
333
334def test_and():
335 temp = SortedSet(range(100))

Callers

nothing calls this directly

Calls 3

SortedSetClass · 0.90
_resetMethod · 0.45
indexMethod · 0.45

Tested by

no test coverage detected