()
| 521 | |
| 522 | #[test] |
| 523 | fn nested_functions() { |
| 524 | if let Expr::Call { func, args } = |
| 525 | p("histogram_quantile(0.99, rate(http_duration_bucket[5m]))") |
| 526 | { |
| 527 | assert_eq!(func, "histogram_quantile"); |
| 528 | assert_eq!(args.len(), 2); |
| 529 | } else { |
| 530 | panic!("expected Call"); |
| 531 | } |
| 532 | } |
| 533 | |
| 534 | #[test] |
| 535 | fn unary_negate() { |