Swap parameters in Assert.assertEquals(long, long) invocation
Swap parameters in an invocation of Assert.assertEquals(long, long) from the method org.apache.commons.numbers.fraction.FractionTest.testGetReducedFraction(). The first parameter should be the expected value, the second parameter the actual value.
@@ -595,10 +595,14 @@ public class FractionTest {
} catch (ArithmeticException ignored) {
// expected
}
- Assert.assertEquals(Fraction.getReducedFraction
- (2, Integer.MIN_VALUE).getNumerator(),-1);
- Assert.assertEquals(Fraction.getReducedFraction
- (1, -1).getNumerator(), -1);
+ Assert.assertEquals(
+ -1,
+ Fraction.getReducedFraction(2, Integer.MIN_VALUE).getNumerator()
+ );
+ Assert.assertEquals(
+ -1,
+ Fraction.getReducedFraction(1, -1).getNumerator()
+ );
}
@Test
