Made tests more readable - missed a function

This commit is contained in:
Daniel 2015-08-08 17:22:47 +02:00
parent 9bb6325846
commit 1716dd86db
1 changed files with 5 additions and 7 deletions

View File

@ -54,13 +54,11 @@ macro_rules! test_cholesky_impl(
let result = na::cholesky(&randmat);
match result {
Ok(v) => {
let recomp = v * na::transpose(&v);
assert!(na::approx_eq(&randmat, &recomp));
},
Err(_) => assert!(false),
}
assert!(result.is_ok());
let v = result.unwrap();
let recomp = v * na::transpose(&v);
assert!(na::approx_eq(&randmat, &recomp));
}
);
);