MCPcopy Index your code
hub / github.com/grantjenks/python-sortedcontainers / test_init

Function test_init

tests/test_coverage_sortedset.py:19–24  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

17 return value % 10
18
19def test_init():
20 temp = SortedSet(range(100))
21 assert temp.key is None
22 temp._reset(7)
23 temp._check()
24 assert all(val == temp[val] for val in temp)
25
26def test_init_key():
27 temp = SortedSet(range(100), key=negate)

Callers

nothing calls this directly

Calls 3

_checkMethod · 0.95
SortedSetClass · 0.90
_resetMethod · 0.45

Tested by

no test coverage detected