fixed a missing absolute value in a test threshold
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@761213 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
f5618f7717
commit
3c50c4d885
|
@ -191,7 +191,7 @@ public class PolynomialsUtilsTest extends TestCase {
|
||||||
for (int i = 0; i < l40.length; ++i) {
|
for (int i = 0; i < l40.length; ++i) {
|
||||||
if (i % 2 == 0) {
|
if (i % 2 == 0) {
|
||||||
double ci = numerators[i / 2] / denominator;
|
double ci = numerators[i / 2] / denominator;
|
||||||
assertEquals(ci, l40[i], ci * 1.0e-15);
|
assertEquals(ci, l40[i], Math.abs(ci) * 1.0e-15);
|
||||||
} else {
|
} else {
|
||||||
assertEquals(0.0, l40[i], 0.0);
|
assertEquals(0.0, l40[i], 0.0);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue