diff --git a/src/tests/mat.rs b/src/tests/mat.rs index 6d08ed0f..b5388bb3 100644 --- a/src/tests/mat.rs +++ b/src/tests/mat.rs @@ -9,7 +9,10 @@ macro_rules! test_inv_mat_impl( for _ in range(0u, 10000) { let randmat : $t = random(); - assert!(na::approx_eq(&(na::inv(&randmat).unwrap() * randmat), &na::one())); + match na::inv(&randmat) { + None => { }, + Some(i) => assert!(na::approx_eq(&(i * randmat), &na::one())) + } } ); )