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

Function test_vectors_resize

tools/python/test/test_vector.py:132–137  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

130
131
132def test_vectors_resize():
133 vs = vectors()
134 vs.resize(100)
135 assert len(vs) == 100
136 for i in range(100):
137 assert len(vs[i]) == 0
138
139
140def test_vectors_extend():

Callers

nothing calls this directly

Calls 3

lenFunction · 0.85
rangeFunction · 0.50
resizeMethod · 0.45

Tested by

no test coverage detected