Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/davisking/dlib
/ test_array_string_representations
Function
test_array_string_representations
tools/python/test/test_array.py:89–92 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
87
88
89
def
test_array_string_representations():
90
a = array([1, 2, 3])
91
assert str(a) ==
"1\n2\n3"
92
assert repr(a) ==
"array[1, 2, 3]"
93
94
95
def
test_array_clear():
Callers
nothing calls this directly
Calls
3
array
Class · 0.90
str
Class · 0.85
repr
Function · 0.85
Tested by
no test coverage detected