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

Function comparison_with_utf8_literal

nodedb-query/src/expr_parse/parser.rs:611–616  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

609
610 #[test]
611 fn comparison_with_utf8_literal() {
612 let (expr, deps) = parse_ok("name != '禁止'");
613 assert_eq!(deps, vec!["name"]);
614 let doc = Value::from(serde_json::json!({"name": "allowed"}));
615 assert_eq!(expr.eval(&doc), Value::Bool(true));
616 }
617}

Callers

nothing calls this directly

Calls 1

parse_okFunction · 0.70

Tested by

no test coverage detected