()
| 11 | |
| 12 | #[test] |
| 13 | fn to_pyarray_vec() { |
| 14 | Python::attach(|py| { |
| 15 | #[allow(clippy::useless_vec)] |
| 16 | let arr = vec![1, 2, 3].to_pyarray(py); |
| 17 | |
| 18 | assert_eq!(arr.shape(), [3]); |
| 19 | assert_eq!(arr.readonly().as_slice().unwrap(), &[1, 2, 3]) |
| 20 | }); |
| 21 | } |
| 22 | |
| 23 | #[test] |
| 24 | fn to_pyarray_boxed_slice() { |
nothing calls this directly
no test coverage detected