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

Function test_intersection

tests/test_coverage_sortedset.py:341–346  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

339 assert all(temp[val] == val for val in range(100))
340
341def test_intersection():
342 temp = SortedSet(range(100))
343 temp._reset(7)
344 that = temp.intersection(range(0, 20), range(10, 30))
345 assert all(that[val] == (val + 10) for val in range(10))
346 assert all(temp[val] == val for val in range(100))
347
348def test_intersection_update():
349 temp = SortedSet(range(100))

Callers

nothing calls this directly

Calls 3

intersectionMethod · 0.95
SortedSetClass · 0.90
_resetMethod · 0.45

Tested by

no test coverage detected