commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From er...@apache.org
Subject [commons-numbers] branch master updated: Revert "Order of arguments in Junit assertions."
Date Thu, 05 Dec 2019 00:06:47 GMT
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


The following commit(s) were added to refs/heads/master by this push:
     new a7603bf  Revert "Order of arguments in Junit assertions."
a7603bf is described below

commit a7603bf65e5db956655935561cce6b109088e683
Author: Gilles Sadowski <gilles@harfang.homelinux.org>
AuthorDate: Thu Dec 5 01:06:22 2019 +0100

    Revert "Order of arguments in Junit assertions."
    
    This reverts commit d59daba7a06349db19a044068a90b1ed32e5c5a3.
---
 .../org/apache/commons/numbers/angle/PlaneAngleRadiansTest.java   | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/commons-numbers-angle/src/test/java/org/apache/commons/numbers/angle/PlaneAngleRadiansTest.java
b/commons-numbers-angle/src/test/java/org/apache/commons/numbers/angle/PlaneAngleRadiansTest.java
index 7c98333..27a99e3 100644
--- a/commons-numbers-angle/src/test/java/org/apache/commons/numbers/angle/PlaneAngleRadiansTest.java
+++ b/commons-numbers-angle/src/test/java/org/apache/commons/numbers/angle/PlaneAngleRadiansTest.java
@@ -27,10 +27,10 @@ public class PlaneAngleRadiansTest {
     public void testConstants() {
         final double eps = 0;
 
-        Assertions.assertEquals(PlaneAngleRadians.PI, Math.PI, eps);
-        Assertions.assertEquals(PlaneAngleRadians.TWO_PI, 2 * Math.PI, eps);
-        Assertions.assertEquals(PlaneAngleRadians.PI_OVER_TWO, Math.PI / 2, eps);
-        Assertions.assertEquals(PlaneAngleRadians.THREE_PI_OVER_TWO, 3 * Math.PI / 2, eps);
+        Assertions.assertEquals(Math.PI, PlaneAngleRadians.PI, eps);
+        Assertions.assertEquals(2 * Math.PI, PlaneAngleRadians.TWO_PI, eps);
+        Assertions.assertEquals(Math.PI / 2, PlaneAngleRadians.PI_OVER_TWO, eps);
+        Assertions.assertEquals(3 * Math.PI / 2, PlaneAngleRadians.THREE_PI_OVER_TWO, eps);
     }
 
     // Test constants using "sin" and "cos".


Mime
View raw message