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

Function non_monotonic_values

nodedb-codec/src/double_delta.rs:422–427  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

420
421 #[test]
422 fn non_monotonic_values() {
423 let values: Vec<i64> = vec![100, 50, 200, 10, 300, 5, 1000, -500, 0, 42];
424 let encoded = encode(&values);
425 let decoded = decode(&encoded).unwrap();
426 assert_eq!(decoded, values);
427 }
428
429 #[test]
430 fn negative_values() {

Callers

nothing calls this directly

Calls 2

encodeFunction · 0.70
decodeFunction · 0.70

Tested by

no test coverage detected