Rearrange DOUBLE_SPECIAL_VALUES in decreasing absolute value to help catch first failure

Add MathUtils.EPSILON and SAFE_MIN as other likely break points

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/branches/MATH_2_X@1061320 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Sebastian Bazley 2011-01-20 14:44:52 +00:00
parent d8e10dccd9
commit 045305d491
1 changed files with 5 additions and 2 deletions

View File

@ -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 = {