diff --git a/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/fitting/leastsquares/LevenbergMarquardtOptimizerTest.java b/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/fitting/leastsquares/LevenbergMarquardtOptimizerTest.java index cdac94d1d..4862eb496 100644 --- a/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/fitting/leastsquares/LevenbergMarquardtOptimizerTest.java +++ b/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/fitting/leastsquares/LevenbergMarquardtOptimizerTest.java @@ -268,9 +268,9 @@ public void testCircleFitting2() { final double[] asymptoticStandardErrorFound = optimum.getSigma(1e-14).toArray(); // Check that the parameters are found within the assumed error bars. - Assert.assertEquals(xCenter, paramFound[0], 2 * asymptoticStandardErrorFound[0]); - Assert.assertEquals(yCenter, paramFound[1], 2 * asymptoticStandardErrorFound[1]); - Assert.assertEquals(radius, paramFound[2], asymptoticStandardErrorFound[2]); + Assert.assertEquals("Delta=" + 2 * asymptoticStandardErrorFound[0], xCenter, paramFound[0], 2 * asymptoticStandardErrorFound[0]); + Assert.assertEquals("Delta=" + 2 * asymptoticStandardErrorFound[1], yCenter, paramFound[1], 2 * asymptoticStandardErrorFound[1]); + Assert.assertEquals("Delta=" + 2 * asymptoticStandardErrorFound[2], radius, paramFound[2], asymptoticStandardErrorFound[2]); } @Test