From c267aedbf0066c83abf2f0992d1440b55831b418 Mon Sep 17 00:00:00 2001 From: Phil Steitz Date: Sat, 17 Jul 2004 19:49:02 +0000 Subject: [PATCH] Renamed RealSolverTest to BrentSolverTest. git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/math/trunk@141386 13f79535-47bb-0310-9956-ffa450edef68 --- .../{RealSolverTest.java => BrentSolverTest.java} | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) rename src/test/org/apache/commons/math/analysis/{RealSolverTest.java => BrentSolverTest.java} (97%) diff --git a/src/test/org/apache/commons/math/analysis/RealSolverTest.java b/src/test/org/apache/commons/math/analysis/BrentSolverTest.java similarity index 97% rename from src/test/org/apache/commons/math/analysis/RealSolverTest.java rename to src/test/org/apache/commons/math/analysis/BrentSolverTest.java index 5f85943b4..2d51fe06b 100644 --- a/src/test/org/apache/commons/math/analysis/RealSolverTest.java +++ b/src/test/org/apache/commons/math/analysis/BrentSolverTest.java @@ -30,16 +30,16 @@ import junit.framework.TestSuite; * default absolute accuracy of 10E-8 for sinus and the quintic function around * zero, and 5..10 iterations for the other zeros. * - * @version $Revision: 1.11 $ $Date: 2004/02/21 21:35:16 $ + * @version $Revision: 1.1 $ $Date: 2004/07/17 19:49:02 $ */ -public final class RealSolverTest extends TestCase { +public final class BrentSolverTest extends TestCase { - public RealSolverTest(String name) { + public BrentSolverTest(String name) { super(name); } public static Test suite() { - TestSuite suite = new TestSuite(RealSolverTest.class); + TestSuite suite = new TestSuite(BrentSolverTest.class); suite.setName("UnivariateRealSolver Tests"); return suite; } @@ -78,6 +78,7 @@ public final class RealSolverTest extends TestCase { assertEquals(result, Math.PI, solver.getAbsoluteAccuracy()); // 5 iterations on i586 JDK 1.4.1. assertTrue(solver.getIterationCount() <= 6); + assertEquals(result, solver.getResult(), 0); } public void testQuinticZero() throws MathException {