From 931a67ff52aeebb5950d28b7ba9c2ad1c0bc80be Mon Sep 17 00:00:00 2001 From: Luc Maisonobe Date: Sun, 20 Apr 2014 13:25:36 +0000 Subject: [PATCH] Math.nextUp is not available before Java 1.6. git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1588754 13f79535-47bb-0310-9956-ffa450edef68 --- .../org/apache/commons/math3/complex/ComplexTest.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/test/java/org/apache/commons/math3/complex/ComplexTest.java b/src/test/java/org/apache/commons/math3/complex/ComplexTest.java index 1778a7967..72d8d85db 100644 --- a/src/test/java/org/apache/commons/math3/complex/ComplexTest.java +++ b/src/test/java/org/apache/commons/math3/complex/ComplexTest.java @@ -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)); }