Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/davisking/dlib
/ test_vector_invalid_getitem
Function
test_vector_invalid_getitem
tools/python/test/test_vector.py:72–77 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
70
71
72
def
test_vector_invalid_getitem():
73
v = vector([1, 2, 3])
74
with
raises(IndexError):
75
v[-4]
76
with
raises(IndexError):
77
v[3]
78
79
80
def
test_vector_init_with_negative_number():
Callers
nothing calls this directly
Calls
1
vector
Class · 0.90
Tested by
no test coverage detected