This is an automated email from the ASF dual-hosted git repository.
eax pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-numbers.git
The following commit(s) were added to refs/heads/master by this push:
new 34542f4 testutils: correct order of expected and actual results
34542f4 is described below
commit 34542f4232cd7941e810cab0f43be1dbe70d9777
Author: Eitan Adler <[email protected]>
AuthorDate: Tue Dec 24 10:14:59 2019 -0800
testutils: correct order of expected and actual results
---
.../src/test/java/org/apache/commons/numbers/core/TestUtils.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git
a/commons-numbers-core/src/test/java/org/apache/commons/numbers/core/TestUtils.java
b/commons-numbers-core/src/test/java/org/apache/commons/numbers/core/TestUtils.java
index 2d01f9c..bfdb434 100644
---
a/commons-numbers-core/src/test/java/org/apache/commons/numbers/core/TestUtils.java
+++
b/commons-numbers-core/src/test/java/org/apache/commons/numbers/core/TestUtils.java
@@ -107,7 +107,7 @@ public final class TestUtils {
} else if (Double.isInfinite(actual) || Double.isInfinite(expected)) {
Assertions.assertEquals(expected, actual, relativeError);
} else if (expected == 0.0) {
- Assertions.assertEquals(actual, expected, relativeError, msg);
+ Assertions.assertEquals(expected, actual, relativeError, msg);
} else {
double absError = Math.abs(expected) * relativeError;
Assertions.assertEquals(expected, actual, absError, msg);