Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/davisking/dlib
/ test_array_extend
Function
test_array_extend
tools/python/test/test_array.py:74–80 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
72
73
74
def
test_array_extend():
75
a = array()
76
a.extend([0, 1, 2, 3, 4])
77
assert len(a) == 5
78
for
idx, val in enumerate(a):
79
assert idx == val
80
assert type(val) == FloatType
81
82
83
def
test_array_string_representations_empty():
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