Skip to content

Commit 72577ee

Browse files
committed
Drop commented assertions
1 parent 129f49c commit 72577ee

File tree

2 files changed

+3
-6
lines changed

2 files changed

+3
-6
lines changed

src/assert.rs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -92,9 +92,6 @@ macro_rules! generate_assert {
9292
($test: expr,$truth: expr,$tol: expr) => {
9393
$crate::$close($test, $truth, $tol).unwrap();
9494
};
95-
($test: expr,$truth: expr,$tol: expr; $comment: expr) => {
96-
$crate::$close($test, $truth, $tol).expect($comment);
97-
};
9895
}
9996
};
10097
} // generate_assert!

tests/opnorm.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@ fn test(a: Array2<f64>, one: f64, inf: f64, fro: f64) {
66
println!("ONE = {:?}", a.opnorm_one());
77
println!("INF = {:?}", a.opnorm_inf());
88
println!("FRO = {:?}", a.opnorm_fro());
9-
assert_rclose!(a.opnorm_one().unwrap(), one, 1e-7; "One norm");
10-
assert_rclose!(a.opnorm_inf().unwrap(), inf, 1e-7; "Infinity norm");
11-
assert_rclose!(a.opnorm_fro().unwrap(), fro, 1e-7; "Frobenius norm");
9+
assert_rclose!(a.opnorm_one().unwrap(), one, 1e-7);
10+
assert_rclose!(a.opnorm_inf().unwrap(), inf, 1e-7);
11+
assert_rclose!(a.opnorm_fro().unwrap(), fro, 1e-7);
1212
}
1313

1414
fn gen(i: usize, j: usize, rev: bool) -> Array2<f64> {

0 commit comments

Comments
 (0)