Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/davisking/dlib
/ test_vector_init_with_list
Function
test_vector_init_with_list
tools/python/test/test_vector.py:39–44 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
37
38
39
def
test_vector_init_with_list():
40
v = vector([1, 2, 3])
41
assert len(v) == 3
42
assert v.shape == (3, 1)
43
assert str(v) ==
"1\n2\n3"
44
assert repr(v) ==
"dlib.vector([1, 2, 3])"
45
46
47
def
test_vector_getitem():
Callers
nothing calls this directly
Calls
4
vector
Class · 0.90
len
Function · 0.85
str
Class · 0.85
repr
Function · 0.85
Tested by
no test coverage detected