MCPcopy 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
9def 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
17def test_vector_init_with_number():

Callers

nothing calls this directly

Calls 4

vectorClass · 0.90
lenFunction · 0.85
strClass · 0.85
reprFunction · 0.85

Tested by

no test coverage detected