MCPcopy 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
39def 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
47def test_vector_getitem():

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