MCPcopy Create free account
hub / github.com/cosdata/cosdata / test_unary_operator_parser

Function test_unary_operator_parser

src/cosql/expression.rs:225–233  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

223
224 #[test]
225 fn test_unary_operator_parser() {
226 let values = [("-", UnaryOperator::Negation), ("!", UnaryOperator::Not)];
227
228 for (source, expected) in values {
229 let (_, parsed) = parse_unary_operator(source).unwrap();
230
231 assert_eq!(parsed, expected);
232 }
233 }
234
235 #[test]
236 fn test_binary_expression_operator_parser() {

Callers

nothing calls this directly

Calls 1

parse_unary_operatorFunction · 0.85

Tested by

no test coverage detected