You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by ah...@apache.org on 2021/06/08 20:53:35 UTC
[commons-numbers] 01/03: Sonar fix: Swap actual and expected
arguments to the assertion
This is an automated email from the ASF dual-hosted git repository.
aherbert pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-numbers.git
commit 8bd04dde807e01d5ca24799c1f9aa72df08cbd9d
Author: Alex Herbert <ah...@apache.org>
AuthorDate: Tue Jun 8 21:14:53 2021 +0100
Sonar fix: Swap actual and expected arguments to the assertion
---
.../src/test/java/org/apache/commons/numbers/core/PrecisionTest.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/commons-numbers-core/src/test/java/org/apache/commons/numbers/core/PrecisionTest.java b/commons-numbers-core/src/test/java/org/apache/commons/numbers/core/PrecisionTest.java
index 12a4f1f..338557e 100644
--- a/commons-numbers-core/src/test/java/org/apache/commons/numbers/core/PrecisionTest.java
+++ b/commons-numbers-core/src/test/java/org/apache/commons/numbers/core/PrecisionTest.java
@@ -295,7 +295,7 @@ class PrecisionTest {
array[j + 1],
eps);
// Check that order is consistent with the comparison function.
- Assertions.assertNotEquals(c, 1);
+ Assertions.assertNotEquals(1, c);
}
Assertions.assertTrue(array[0] == 0.01 || array[0] == 0.02);
Assertions.assertTrue(array[1] == 0.01 || array[1] == 0.02);