MCPcopy Create free account
hub / github.com/davisking/dlib / test_array_resize

Function test_array_resize

tools/python/test/test_array.py:101–107  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

99
100
101def test_array_resize():
102 a = array(10)
103 a.resize(100)
104 assert len(a) == 100
105
106 for i in range(100):
107 assert a[i] == 0

Callers

nothing calls this directly

Calls 4

arrayClass · 0.90
lenFunction · 0.85
rangeFunction · 0.50
resizeMethod · 0.45

Tested by

no test coverage detected