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

Function test_getitem

tests/test_coverage_sorteddict.py:78–81  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

76 temp._check()
77
78def test_getitem():
79 mapping = [(val, pos) for pos, val in enumerate(string.ascii_lowercase)]
80 temp = SortedDict(mapping)
81 assert all((temp[val] == pos) for pos, val in enumerate(string.ascii_lowercase))
82
83def test_eq():
84 mapping = [(val, pos) for pos, val in enumerate(string.ascii_lowercase)]

Callers

nothing calls this directly

Calls 1

SortedDictClass · 0.90

Tested by

no test coverage detected