Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/davisking/dlib
/ test_vector_empty_init
Function
test_vector_empty_init
tools/python/test/test_vector.py:9–14 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
7
8
9
def
test_vector_empty_init():
10
v = vector()
11
assert len(v) == 0
12
assert v.shape == (0, 1)
13
assert str(v) ==
""
14
assert repr(v) ==
"dlib.vector([])"
15
16
17
def
test_vector_init_with_number():
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