You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by se...@apache.org on 2011/01/20 15:45:12 UTC
svn commit: r1061322 -
/commons/proper/math/trunk/src/test/java/org/apache/commons/math/util/FastMathTest.java
Author: sebb
Date: Thu Jan 20 14:45:12 2011
New Revision: 1061322
URL: http://svn.apache.org/viewvc?rev=1061322&view=rev
Log:
Rearrange DOUBLE_SPECIAL_VALUES in decreasing absolute value to help catch first failure
Add MathUtils.EPSILON and SAFE_MIN as other likely break points
Modified:
commons/proper/math/trunk/src/test/java/org/apache/commons/math/util/FastMathTest.java
Modified: commons/proper/math/trunk/src/test/java/org/apache/commons/math/util/FastMathTest.java
URL: http://svn.apache.org/viewvc/commons/proper/math/trunk/src/test/java/org/apache/commons/math/util/FastMathTest.java?rev=1061322&r1=1061321&r2=1061322&view=diff
==============================================================================
--- commons/proper/math/trunk/src/test/java/org/apache/commons/math/util/FastMathTest.java (original)
+++ commons/proper/math/trunk/src/test/java/org/apache/commons/math/util/FastMathTest.java Thu Jan 20 14:45:12 2011
@@ -39,8 +39,11 @@ public class FastMathTest {
-0.0, +0.0, // 1,2
Double.NaN, // 3
Double.NEGATIVE_INFINITY, Double.POSITIVE_INFINITY, // 4,5
- Double.MIN_VALUE, Double.MAX_VALUE, // 6,7
- -Double.MIN_VALUE, -Double.MAX_VALUE, // 8,9
+ -Double.MAX_VALUE, Double.MAX_VALUE, // 6,7
+ // decreasing order of absolute value to help catch first failure
+ -MathUtils.EPSILON, MathUtils.EPSILON, // 8,9
+ -MathUtils.SAFE_MIN, MathUtils.SAFE_MIN, // 10,11
+ -Double.MIN_VALUE, Double.MIN_VALUE, // 12,13
};
private static final float [] FLOAT_SPECIAL_VALUES = {