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

Function test_array_init_with_number

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

Source from the content-addressed store, hash-verified

13
14
15def test_array_init_with_number():
16 a = array(5)
17 assert len(a) == 5
18 for i in range(5):
19 assert a[i] == 0
20 assert type(a[i]) == FloatType
21
22
23def test_array_init_with_negative_number():

Callers

nothing calls this directly

Calls 4

arrayClass · 0.90
lenFunction · 0.85
rangeFunction · 0.50
typeEnum · 0.50

Tested by

no test coverage detected