(self)
| 25 | |
| 26 | class TestVectorEncoding: |
| 27 | def test_roundtrip(self): |
| 28 | original = [1.0, 2.5, -3.14, 0.0, 100.0] |
| 29 | blob = _encode_vector(original) |
| 30 | decoded = _decode_vector(blob) |
| 31 | assert len(decoded) == len(original) |
| 32 | for a, b in zip(original, decoded): |
| 33 | assert abs(a - b) < 1e-5 |
| 34 | |
| 35 | def test_empty_vector(self): |
| 36 | blob = _encode_vector([]) |
nothing calls this directly
no test coverage detected