()
| 22 | |
| 23 | #[test] |
| 24 | fn to_pyarray_boxed_slice() { |
| 25 | Python::attach(|py| { |
| 26 | let arr = vec![1, 2, 3].into_boxed_slice().to_pyarray(py); |
| 27 | |
| 28 | assert_eq!(arr.shape(), [3]); |
| 29 | assert_eq!(arr.readonly().as_slice().unwrap(), &[1, 2, 3]) |
| 30 | }); |
| 31 | } |
| 32 | |
| 33 | #[test] |
| 34 | fn to_pyarray_array() { |
nothing calls this directly
no test coverage detected