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