Author: luc
Date: Fri Feb 8 11:28:47 2008
New Revision: 619980
URL: http://svn.apache.org/viewvc?rev=619980&view=rev
Log:
removed remnants of development tests
Modified:
commons/proper/math/trunk/src/test/org/apache/commons/math/util/MathUtilsTest.java
Modified: commons/proper/math/trunk/src/test/org/apache/commons/math/util/MathUtilsTest.java
URL: http://svn.apache.org/viewvc/commons/proper/math/trunk/src/test/org/apache/commons/math/util/MathUtilsTest.java?rev=619980&r1=619979&r2=619980&view=diff
==============================================================================
--- commons/proper/math/trunk/src/test/org/apache/commons/math/util/MathUtilsTest.java (original)
+++ commons/proper/math/trunk/src/test/org/apache/commons/math/util/MathUtilsTest.java Fri
Feb 8 11:28:47 2008
@@ -20,7 +20,6 @@
import junit.framework.TestSuite;
import org.apache.commons.math.TestUtils;
-import org.apache.commons.math.stat.descriptive.SummaryStatistics;
/**
* Test cases for the MathUtils class.
@@ -523,14 +522,12 @@
}
public void testNormalizeAngle() {
- SummaryStatistics stat = new SummaryStatistics();
for (double a = -15.0; a <= 15.0; a += 0.1) {
for (double b = -15.0; b <= 15.0; b += 0.2) {
double c = MathUtils.normalizeAngle(a, b);
assertTrue((b - Math.PI) <= c);
assertTrue(c <= (b + Math.PI));
double twoK = Math.rint((a - c) / Math.PI);
- stat.addValue(c - a + twoK * Math.PI);
assertEquals(c, a - twoK * Math.PI, 1.0e-14);
}
}
|