MCPcopy Create free account
hub / github.com/davisking/dlib / test_array_init_with_list

Function test_array_init_with_list

tools/python/test/test_array.py:33–38  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

31
32
33def test_array_init_with_list():
34 a = array([0, 1, 2, 3, 4])
35 assert len(a) == 5
36 for idx, val in enumerate(a):
37 assert idx == val
38 assert type(val) == FloatType
39
40
41def test_array_init_with_empty_list():

Callers

nothing calls this directly

Calls 3

arrayClass · 0.90
lenFunction · 0.85
typeEnum · 0.50

Tested by

no test coverage detected