()
| 491 | |
| 492 | #[test] |
| 493 | fn binary_precedence() { |
| 494 | if let Expr::BinaryOp { op, rhs, .. } = p("a + b * c") { |
| 495 | assert_eq!(op, BinOp::Add); |
| 496 | assert!(matches!(*rhs, Expr::BinaryOp { op: BinOp::Mul, .. })); |
| 497 | } else { |
| 498 | panic!("expected BinaryOp"); |
| 499 | } |
| 500 | } |
| 501 | |
| 502 | #[test] |
| 503 | fn aggregation_by() { |