Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/davisking/dlib
/ test_array_init_with_tuple
Function
test_array_init_with_tuple
tools/python/test/test_array.py:51–55 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
49
50
51
def
test_array_init_with_tuple():
52
a = array((0, 1, 2, 3, 4))
53
for
idx, val in enumerate(a):
54
assert idx == val
55
assert type(val) == FloatType
56
57
58
def
test_array_serialization_empty():
Callers
nothing calls this directly
Calls
2
array
Class · 0.90
type
Enum · 0.50
Tested by
no test coverage detected