Simplify assertion in lower_incomplete_gamma test for clarity

This commit is contained in:
Palash Tyagi 2025-07-08 23:18:16 +01:00
parent 8ffa278db8
commit 61aeedbf76

View File

@ -376,11 +376,6 @@ mod tests {
let x = Matrix::filled(5, 5, 1.0);
let expected = lower_incomplete_gamma_func(2.0, 1.0);
let result = lower_incomplete_gamma(s, x);
assert!(
(result.data()[0] - expected).abs() < 1e-7,
"Expected: {}, Got: {}",
expected,
result.data()[0]
);
assert!((result.data()[0] - expected).abs() < 1e-7);
}
}