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

Function compare_strings

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

Source from the content-addressed store, hash-verified

217
218 #[test]
219 fn compare_strings() {
220 let a = encode(&json!("apple"));
221 let b = encode(&json!("banana"));
222 assert_eq!(
223 compare_field_bytes(&a, val_range(&a), &b, val_range(&b)),
224 Ordering::Less
225 );
226 }
227
228 #[test]
229 fn compare_cross_type_null_vs_number() {

Callers

nothing calls this directly

Calls 1

encodeFunction · 0.70

Tested by

no test coverage detected