MCPcopy Create free account
hub / github.com/NodeDB-Lab/nodedb / empty_roundtrip

Function empty_roundtrip

nodedb-codec/src/spherical.rs:266–272  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

264
265 #[test]
266 fn empty_roundtrip() {
267 let encoded = encode(&[], 32, 0).unwrap();
268 let (decoded, dims, vectors) = decode(&encoded).unwrap();
269 assert!(decoded.is_empty());
270 assert_eq!(vectors, 0);
271 assert_eq!(dims, 32);
272 }
273
274 #[test]
275 fn normalized_roundtrip() {

Callers

nothing calls this directly

Calls 2

encodeFunction · 0.70
decodeFunction · 0.70

Tested by

no test coverage detected