()
| 511 | |
| 512 | #[test] |
| 513 | fn topk_with_param() { |
| 514 | if let Expr::Aggregate { op, param, .. } = p("topk(5, requests)") { |
| 515 | assert_eq!(op, AggOp::Topk); |
| 516 | assert!(param.is_some()); |
| 517 | } else { |
| 518 | panic!("expected Aggregate"); |
| 519 | } |
| 520 | } |
| 521 | |
| 522 | #[test] |
| 523 | fn nested_functions() { |