MCPcopy Create free account
hub / github.com/MarchLiu/hypatia / parse_operator_array_form

Function parse_operator_array_form

src/engine/parser.rs:147–156  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

145 let ast = Parser::parse(&json!("hello")).unwrap();
146 assert!(matches!(ast, AstNode::Literal(v) if v == json!("hello")));
147 }
148
149 #[test]
150 fn parse_symbol() {
151 let ast = Parser::parse(&json!("$myField")).unwrap();
152 assert!(matches!(ast, AstNode::Symbol(s) if s == "$myField"));
153 }
154
155 #[test]
156 fn parse_escaped_symbol() {
157 let ast = Parser::parse(&json!("$$name")).unwrap();
158 assert!(matches!(ast, AstNode::Literal(v) if v == json!("$name")));
159 }

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected