This is an automated email from the ASF dual-hosted git repository. erans pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/commons-numbers.git
commit 7c1f0fd5c4f145ca9ae13c3ec0505988785b57d2 Author: Schamschi <heinrich.bo...@gmx.at> AuthorDate: Sun Jun 9 21:22:47 2019 +0200 NUMBERS-100: Correct presumable typo Correct a presumable typo in the method org.apache.commons.numbers.fraction.FractionTest.testPow() (the expected results are the same for a and b, so the test should pass in both cases, but the case of a has already been tested) --- .../test/java/org/apache/commons/numbers/fraction/FractionTest.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/commons-numbers-fraction/src/test/java/org/apache/commons/numbers/fraction/FractionTest.java b/commons-numbers-fraction/src/test/java/org/apache/commons/numbers/fraction/FractionTest.java index 0ab3cef..e41ab5d 100644 --- a/commons-numbers-fraction/src/test/java/org/apache/commons/numbers/fraction/FractionTest.java +++ b/commons-numbers-fraction/src/test/java/org/apache/commons/numbers/fraction/FractionTest.java @@ -489,8 +489,8 @@ public class FractionTest { assertFraction(1, 1, b.pow(0)); assertFraction(-3, 7, b.pow(1)); assertFraction(-7, 3, b.pow(-1)); - assertFraction(9, 49, a.pow(2)); - assertFraction(49, 9, a.pow(-2)); + assertFraction(9, 49, b.pow(2)); + assertFraction(49, 9, b.pow(-2)); Fraction c = Fraction.of(0, -11); assertFraction(0, 1, c.pow(Integer.MAX_VALUE));