You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by er...@apache.org on 2017/07/03 14:24:36 UTC

[2/5] commons-numbers git commit: Use standard notation.

Use standard notation.


Project: http://git-wip-us.apache.org/repos/asf/commons-numbers/repo
Commit: http://git-wip-us.apache.org/repos/asf/commons-numbers/commit/47e19ab3
Tree: http://git-wip-us.apache.org/repos/asf/commons-numbers/tree/47e19ab3
Diff: http://git-wip-us.apache.org/repos/asf/commons-numbers/diff/47e19ab3

Branch: refs/heads/master
Commit: 47e19ab375e512518fa25bb446e16fd5c64ac0a2
Parents: e2f0662
Author: Gilles Sadowski <gi...@harfang.homelinux.org>
Authored: Mon Jul 3 14:08:18 2017 +0200
Committer: Gilles Sadowski <gi...@harfang.homelinux.org>
Committed: Mon Jul 3 14:08:18 2017 +0200

----------------------------------------------------------------------
 .../commons/numbers/fraction/ContinuedFractionTest.java      | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/commons-numbers/blob/47e19ab3/commons-numbers-fraction/src/test/java/org/apache/commons/numbers/fraction/ContinuedFractionTest.java
----------------------------------------------------------------------
diff --git a/commons-numbers-fraction/src/test/java/org/apache/commons/numbers/fraction/ContinuedFractionTest.java b/commons-numbers-fraction/src/test/java/org/apache/commons/numbers/fraction/ContinuedFractionTest.java
index 06e2bb1..8f450aa 100644
--- a/commons-numbers-fraction/src/test/java/org/apache/commons/numbers/fraction/ContinuedFractionTest.java
+++ b/commons-numbers-fraction/src/test/java/org/apache/commons/numbers/fraction/ContinuedFractionTest.java
@@ -31,16 +31,16 @@ public class ContinuedFractionTest {
 
             @Override
             public double getA(int n, double x) {
-                return 1.0;
+                return 1;
             }
 
             @Override
             public double getB(int n, double x) {
-                return 1.0;
+                return 1;
             }
         };
 
-        double gr = cf.evaluate(0.0, 10e-9);
-        Assert.assertEquals(1.61803399, gr, 10e-9);
+        double gr = cf.evaluate(0.0, 1e-8);
+        Assert.assertEquals(1.61803399, gr, 1e-8);
     }
 }