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

Function compare_negative_integers

nodedb-query/src/msgpack_scan/compare.rs:259–266  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

257
258 #[test]
259 fn compare_negative_integers() {
260 let a = encode(&json!(-10));
261 let b = encode(&json!(-5));
262 assert_eq!(
263 compare_field_bytes(&a, val_range(&a), &b, val_range(&b)),
264 Ordering::Less
265 );
266 }
267
268 #[test]
269 fn field_bytes_eq_works() {

Callers

nothing calls this directly

Calls 1

encodeFunction · 0.70

Tested by

no test coverage detected