()
| 538 | |
| 539 | #[test] |
| 540 | fn offset_modifier() { |
| 541 | if let Expr::VectorSelector { offset, .. } = p("up offset 5m") { |
| 542 | assert_eq!(offset, Some(Duration(300_000))); |
| 543 | } else { |
| 544 | panic!("expected VectorSelector"); |
| 545 | } |
| 546 | } |
| 547 | |
| 548 | #[test] |
| 549 | fn comparison_bool() { |