Skip to content

Commit 0fca79e

Browse files
committed
Show tolerance and delta on failure
1 parent c246196 commit 0fca79e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

commons-math-transform/src/test/java/org/apache/commons/math4/transform/RealTransformerAbstractTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -299,8 +299,8 @@ private void doTestTransformReal(final int n,
299299
final double[] expected = transform(x, type);
300300
final double[] actual = transformer.apply(x);
301301
for (int i = 0; i < n; i++) {
302-
final String msg = String.format("%d, %d", n, i);
303302
final double delta = tol * Math.abs(expected[i]);
303+
final String msg = String.format("%d, %d (%g, %g)", n, i, tol, delta);
304304
Assert.assertEquals(msg, expected[i], actual[i], delta);
305305
}
306306
}

0 commit comments

Comments
 (0)