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

Function test_update

tests/test_coverage_sortedset.py:439–443  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

437 assert all(that[val] == (val + 50) for val in range(50))
438
439def test_update():
440 temp = SortedSet(range(0, 80))
441 temp._reset(7)
442 temp.update(range(80, 90), range(90, 100))
443 assert all(temp[val] == val for val in range(100))
444
445def test_ior():
446 temp = SortedSet(range(0, 80))

Callers

nothing calls this directly

Calls 3

updateMethod · 0.95
SortedSetClass · 0.90
_resetMethod · 0.45

Tested by

no test coverage detected