commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From aherb...@apache.org
Subject [commons-numbers] 01/02: Reverse actual and expected for the assertion.
Date Sun, 16 Feb 2020 13:29:34 GMT
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 c4817e4f41c1790aea541c048453d8539f26e308
Author: Alex Herbert <aherbert@apache.org>
AuthorDate: Sun Feb 16 13:26:52 2020 +0000

    Reverse actual and expected for the assertion.
---
 .../test/java/org/apache/commons/numbers/complex/ComplexTest.java | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/commons-numbers-complex/src/test/java/org/apache/commons/numbers/complex/ComplexTest.java
b/commons-numbers-complex/src/test/java/org/apache/commons/numbers/complex/ComplexTest.java
index b66b872..09d0a6d 100644
--- a/commons-numbers-complex/src/test/java/org/apache/commons/numbers/complex/ComplexTest.java
+++ b/commons-numbers-complex/src/test/java/org/apache/commons/numbers/complex/ComplexTest.java
@@ -2024,13 +2024,13 @@ public class ComplexTest {
     public void testSinCosLinearAssumptions() {
         // Are cos and sin linear around zero?
         // If cos is still 1 then since d(sin) dx = cos then sin is linear.
-        Assertions.assertEquals(Math.cos(Double.MIN_NORMAL), 1.0);
-        Assertions.assertEquals(Math.sin(Double.MIN_NORMAL), Double.MIN_NORMAL);
+        Assertions.assertEquals(1.0, Math.cos(Double.MIN_NORMAL));
+        Assertions.assertEquals(Double.MIN_NORMAL, Math.sin(Double.MIN_NORMAL));
 
         // Are cosh and sinh linear around zero?
         // If cosh is still 1 then since d(sinh) dx = cosh then sinh is linear.
-        Assertions.assertEquals(Math.cosh(Double.MIN_NORMAL), 1.0);
-        Assertions.assertEquals(Math.sinh(Double.MIN_NORMAL), Double.MIN_NORMAL);
+        Assertions.assertEquals(1.0, Math.cosh(Double.MIN_NORMAL));
+        Assertions.assertEquals(Double.MIN_NORMAL, Math.sinh(Double.MIN_NORMAL));
     }
 
     /**


Mime
View raw message