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

Function test_vector_serialization

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

Source from the content-addressed store, hash-verified

92
93
94def test_vector_serialization():
95 v = vector([1, 2, 3])
96 ser = pickle.dumps(v, 2)
97 deser = pickle.loads(ser)
98 assert str(v) == str(deser)
99
100
101def generate_test_vectors():

Callers

nothing calls this directly

Calls 2

vectorClass · 0.90
strClass · 0.85

Tested by

no test coverage detected