Skip to content

Commit 9400e3a

Browse files
author
Pavel Potoček
committed
Add a panicking test
1 parent 66816a3 commit 9400e3a

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/array.rs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -997,3 +997,10 @@ fn test_get_unchecked() {
997997
assert_eq!(*array.uget([1]), 2);
998998
}
999999
}
1000+
1001+
#[test]
1002+
fn test_dyn_to_owned_array() {
1003+
let gil = pyo3::Python::acquire_gil();
1004+
let array = PyArray::from_vec2(gil.python(), &vec![vec![1,2], vec![3,4]]).unwrap();
1005+
array.into_dyn().to_owned_array();
1006+
}

0 commit comments

Comments
 (0)