Skip to content

Commit bbb9e4a

Browse files
committed
TEST: Use zero matrix for non-invertible matrix
1 parent 39586c8 commit bbb9e4a

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

tests/inv.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,9 @@ mod $modname {
2626
#[should_panic]
2727
fn inv_error() {
2828
// do not have inverse
29-
let a = Array::range(1., 10., 1.).into_shape((3, 3)).unwrap();
30-
let _ = a.$clone().inv().unwrap();
29+
let a = Array::<f64, _>::zeros(9).into_shape((3, 3)).unwrap();
30+
let a_inv = a.$clone().inv().unwrap();
31+
println!("{:?}", a_inv);
3132
}
3233
}
3334
}} // impl_test

0 commit comments

Comments
 (0)