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

Function test_iter

tests/test_coverage_sorteddict.py:99–102  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

97 assert not (temp1 == temp2)
98
99def test_iter():
100 mapping = [(val, pos) for pos, val in enumerate(string.ascii_lowercase)]
101 temp = SortedDict(mapping)
102 assert all(lhs == rhs for lhs, rhs in zip(temp, string.ascii_lowercase))
103
104def test_iter_key():
105 temp = SortedDict(negate, ((val, val) for val in range(100)))

Callers

nothing calls this directly

Calls 1

SortedDictClass · 0.90

Tested by

no test coverage detected