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

Function cjk_string_in_concat

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

Source from the content-addressed store, hash-verified

602
603 #[test]
604 fn cjk_string_in_concat() {
605 let (expr, _) = parse_ok("CONCAT('你好', name)");
606 let doc = Value::from(serde_json::json!({"name": "world"}));
607 assert_eq!(expr.eval(&doc), Value::String("你好world".into()));
608 }
609
610 #[test]
611 fn comparison_with_utf8_literal() {

Callers

nothing calls this directly

Calls 1

parse_okFunction · 0.70

Tested by

no test coverage detected