()
| 441 | |
| 442 | #[test] |
| 443 | fn casting_works() { |
| 444 | Python::attach(|py| { |
| 445 | let ob = PyArray::from_slice(py, &[1_i32, 2, 3]).into_any(); |
| 446 | |
| 447 | assert!(ob.cast::<PyArray1<i32>>().is_ok()); |
| 448 | }); |
| 449 | } |
| 450 | |
| 451 | #[test] |
| 452 | fn casting_respects_element_type() { |
nothing calls this directly
no test coverage detected