You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by lu...@apache.org on 2014/04/20 15:25:37 UTC

svn commit: r1588754 - /commons/proper/math/trunk/src/test/java/org/apache/commons/math3/complex/ComplexTest.java

Author: luc
Date: Sun Apr 20 13:25:36 2014
New Revision: 1588754

URL: http://svn.apache.org/r1588754
Log:
Math.nextUp is not available before Java 1.6.

Modified:
    commons/proper/math/trunk/src/test/java/org/apache/commons/math3/complex/ComplexTest.java

Modified: commons/proper/math/trunk/src/test/java/org/apache/commons/math3/complex/ComplexTest.java
URL: http://svn.apache.org/viewvc/commons/proper/math/trunk/src/test/java/org/apache/commons/math3/complex/ComplexTest.java?rev=1588754&r1=1588753&r2=1588754&view=diff
==============================================================================
--- commons/proper/math/trunk/src/test/java/org/apache/commons/math3/complex/ComplexTest.java (original)
+++ commons/proper/math/trunk/src/test/java/org/apache/commons/math3/complex/ComplexTest.java Sun Apr 20 13:25:36 2014
@@ -531,14 +531,14 @@ public class ComplexTest {
 
         final int maxUlps = 5;
         for (int i = 0; i < maxUlps; i++) {
-            re = Math.nextUp(re);
-            im = Math.nextUp(im);
+            re = FastMath.nextUp(re);
+            im = FastMath.nextUp(im);
         }
         y = new Complex(re, im);
         Assert.assertTrue(Complex.equals(x, y, maxUlps));
 
-        re = Math.nextUp(re);
-        im = Math.nextUp(im);
+        re = FastMath.nextUp(re);
+        im = FastMath.nextUp(im);
         y = new Complex(re, im);
         Assert.assertFalse(Complex.equals(x, y, maxUlps));
     }