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:44:52 UTC
svn commit: r1061320 -
/commons/proper/math/branches/MATH_2_X/src/test/java/org/apache/commons/math/util/FastMathTest.java
Author: sebb
Date: Thu Jan 20 14:44:52 2011
New Revision: 1061320
URL: http://svn.apache.org/viewvc?rev=1061320&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/branches/MATH_2_X/src/test/java/org/apache/commons/math/util/FastMathTest.java
Modified: commons/proper/math/branches/MATH_2_X/src/test/java/org/apache/commons/math/util/FastMathTest.java
URL: http://svn.apache.org/viewvc/commons/proper/math/branches/MATH_2_X/src/test/java/org/apache/commons/math/util/FastMathTest.java?rev=1061320&r1=1061319&r2=1061320&view=diff
==============================================================================
--- commons/proper/math/branches/MATH_2_X/src/test/java/org/apache/commons/math/util/FastMathTest.java (original)
+++ commons/proper/math/branches/MATH_2_X/src/test/java/org/apache/commons/math/util/FastMathTest.java Thu Jan 20 14:44:52 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 = {