MCPcopy 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
89def 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
95def test_array_clear():

Callers

nothing calls this directly

Calls 3

arrayClass · 0.90
strClass · 0.85
reprFunction · 0.85

Tested by

no test coverage detected