()
| 279 | |
| 280 | #[test] |
| 281 | fn parse_where_comparison() { |
| 282 | let q = parse("MATCH (a)-[:HAS]->(b) WHERE a.age > 25 RETURN a").unwrap(); |
| 283 | match &q.where_predicates[0] { |
| 284 | WherePredicate::Comparison { op, value, .. } => { |
| 285 | assert_eq!(*op, ComparisonOp::Gt); |
| 286 | assert_eq!(value, "25"); |
| 287 | } |
| 288 | _ => panic!("expected Comparison predicate"), |
| 289 | } |
| 290 | } |
| 291 | |
| 292 | #[test] |
| 293 | fn parse_where_not_exists() { |