From 045305d4917774065af449dc655b4ddd17d000a1 Mon Sep 17 00:00:00 2001 From: Sebastian Bazley Date: Thu, 20 Jan 2011 14:44:52 +0000 Subject: [PATCH] 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 --- .../java/org/apache/commons/math/util/FastMathTest.java | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/test/java/org/apache/commons/math/util/FastMathTest.java b/src/test/java/org/apache/commons/math/util/FastMathTest.java index 2bf07d9b9..1669be2ab 100644 --- a/src/test/java/org/apache/commons/math/util/FastMathTest.java +++ b/src/test/java/org/apache/commons/math/util/FastMathTest.java @@ -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 = {