Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/grantjenks/python-sortedcontainers
/ test_getitem
Function
test_getitem
tests/test_coverage_sortedset.py:36–39 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
34
assert all(val not in temp
for
val in range(100, 200))
35
36
def
test_getitem():
37
temp = SortedSet(range(100))
38
temp._reset(7)
39
assert all(val == temp[val]
for
val in temp)
40
41
def
test_getitem_slice():
42
vals = list(range(100))
Callers
nothing calls this directly
Calls
2
SortedSet
Class · 0.90
_reset
Method · 0.45
Tested by
no test coverage detected