Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/davisking/dlib
/ test_vector_getitem
Function
test_vector_getitem
tools/python/test/test_vector.py:47–51 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
45
46
47
def
test_vector_getitem():
48
v = vector([1, 2, 3])
49
assert v[0] == 1
50
assert v[-1] == 3
51
assert v[1] == v[-2]
52
53
54
def
test_vector_slice():
Callers
nothing calls this directly
Calls
1
vector
Class · 0.90
Tested by
no test coverage detected