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

Function test_contains

tests/test_coverage_sortedset.py:30–34  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

28 assert temp.key == negate
29
30def test_contains():
31 temp = SortedSet(range(100))
32 temp._reset(7)
33 assert all(val in temp for val in range(100))
34 assert all(val not in temp for val in range(100, 200))
35
36def test_getitem():
37 temp = SortedSet(range(100))

Callers

nothing calls this directly

Calls 2

SortedSetClass · 0.90
_resetMethod · 0.45

Tested by

no test coverage detected