From cba0440e547121a0181f3a0f62ff1a637d4d39e0 Mon Sep 17 00:00:00 2001 From: Sebb Date: Sun, 24 Dec 2023 17:46:45 +0000 Subject: [PATCH] Show more test context --- .../leastsquares/LevenbergMarquardtOptimizerTest.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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 cdac94d1d7..4862eb496c 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