()
| 626 | |
| 627 | #[test] |
| 628 | fn where_expr_merges_temp_args() { |
| 629 | pyo3::prepare_freethreaded_python(); |
| 630 | Python::with_gil(|py| { |
| 631 | let km = PyKernelModule::new(); |
| 632 | let cond = km.arg("cond"); |
| 633 | let t_val = 1.0f64.into_pyobject(py).unwrap(); |
| 634 | let f_val = 0.0f64.into_pyobject(py).unwrap(); |
| 635 | let result = km.where_expr(cond, t_val.as_any(), f_val.as_any()).unwrap(); |
| 636 | assert!(matches!(result.inner, Expr::Select(_, _, _))); |
| 637 | assert_eq!(result.temp_args.len(), 1); |
| 638 | }); |
| 639 | } |
| 640 | |
| 641 | #[test] |
| 642 | fn where_expr_with_three_args() { |
nothing calls this directly
no test coverage detected