()
| 640 | |
| 641 | #[test] |
| 642 | fn where_expr_with_three_args() { |
| 643 | pyo3::prepare_freethreaded_python(); |
| 644 | Python::with_gil(|py| { |
| 645 | let km = PyKernelModule::new(); |
| 646 | let cond = km.arg("c"); |
| 647 | let t = km.arg("t"); |
| 648 | let f = km.arg("f"); |
| 649 | let t_obj = t.into_pyobject(py).unwrap(); |
| 650 | let f_obj = f.into_pyobject(py).unwrap(); |
| 651 | let result = km.where_expr(cond, t_obj.as_any(), f_obj.as_any()).unwrap(); |
| 652 | assert_eq!(result.temp_args.len(), 3); |
| 653 | }); |
| 654 | } |
| 655 | |
| 656 | // --- Reduce specs --- |
| 657 |
nothing calls this directly
no test coverage detected