Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
33
def
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
41
def
test_array_init_with_empty_list():
Callers
nothing calls this directly
Calls
3
array
Class · 0.90
len
Function · 0.85
type
Enum · 0.50
Tested by
no test coverage detected