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 e12bf62531bb1edb7c2d8fcd5c85cab486c631ca
Author: Schamschi <[email protected]>
AuthorDate: Tue Jun 11 17:19:38 2019 +0200

    Correct parameter order in assertEquals
---
 .../java/org/apache/commons/numbers/core/ArithmeticUtilsTest.java   | 2 +-
 .../java/org/apache/commons/numbers/primes/SmallPrimesTest.java     | 6 +++---
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git 
a/commons-numbers-core/src/test/java/org/apache/commons/numbers/core/ArithmeticUtilsTest.java
 
b/commons-numbers-core/src/test/java/org/apache/commons/numbers/core/ArithmeticUtilsTest.java
index ea4fd30..f23fe2d 100644
--- 
a/commons-numbers-core/src/test/java/org/apache/commons/numbers/core/ArithmeticUtilsTest.java
+++ 
b/commons-numbers-core/src/test/java/org/apache/commons/numbers/core/ArithmeticUtilsTest.java
@@ -559,7 +559,7 @@ public class ArithmeticUtilsTest {
         }
         for (int i = 0; i < expected.length; i++) {
             final boolean actual = ArithmeticUtils.isPowerOfTwo(i);
-            Assertions.assertEquals(actual, expected[i], Integer.toString(i));
+            Assertions.assertEquals(expected[i], actual, Integer.toString(i));
         }
     }
 
diff --git 
a/commons-numbers-primes/src/test/java/org/apache/commons/numbers/primes/SmallPrimesTest.java
 
b/commons-numbers-primes/src/test/java/org/apache/commons/numbers/primes/SmallPrimesTest.java
index a4fdab5..06023c5 100644
--- 
a/commons-numbers-primes/src/test/java/org/apache/commons/numbers/primes/SmallPrimesTest.java
+++ 
b/commons-numbers-primes/src/test/java/org/apache/commons/numbers/primes/SmallPrimesTest.java
@@ -59,7 +59,7 @@ public class SmallPrimesTest {
         final int penultimatePrime = 
SmallPrimes.PRIMES[SmallPrimes.PRIMES.length-2];
         final int result = 
SmallPrimes.smallTrialDivision(penultimatePrime*SmallPrimes.PRIMES_LAST, 
factors);
         Assertions.assertEquals(1, result);
-        Assertions.assertEquals(factors, Arrays.asList(penultimatePrime, 
SmallPrimes.PRIMES_LAST));
+        Assertions.assertEquals(Arrays.asList(penultimatePrime, 
SmallPrimes.PRIMES_LAST), factors);
     }
 
     @Test
@@ -83,7 +83,7 @@ public class SmallPrimesTest {
         final List<Integer> factors = new ArrayList<Integer>();
         final int result = 
SmallPrimes.boundedTrialDivision(LARGE_PRIME[0]*LARGE_PRIME[1], 
Integer.MAX_VALUE, factors);
         Assertions.assertEquals(LARGE_PRIME[1], result);
-        Assertions.assertEquals(factors, Arrays.asList(LARGE_PRIME[0], 
LARGE_PRIME[1]));
+        Assertions.assertEquals(Arrays.asList(LARGE_PRIME[0], LARGE_PRIME[1]), 
factors);
     }
 
     @Test
@@ -91,7 +91,7 @@ public class SmallPrimesTest {
         final List<Integer> factors = new ArrayList<Integer>();
         final int result = 
SmallPrimes.boundedTrialDivision(LARGE_PRIME[0]*LARGE_PRIME[0], 
Integer.MAX_VALUE, factors);
         Assertions.assertEquals(LARGE_PRIME[0], result);
-        Assertions.assertEquals(factors, Arrays.asList(LARGE_PRIME[0], 
LARGE_PRIME[0]));
+        Assertions.assertEquals(Arrays.asList(LARGE_PRIME[0], LARGE_PRIME[0]), 
factors);
     }
 
     @Test

Reply via email to