You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by er...@apache.org on 2019/12/04 23:02:33 UTC
[commons-numbers] branch master updated (2026f96 -> b726f82)
This is an automated email from the ASF dual-hosted git repository.
erans pushed a change to branch master
in repository https://gitbox.apache.org/repos/asf/commons-numbers.git.
from 2026f96 Use add(double), subtract and subtractFromReal(double).
new d59daba Order of arguments in Junit assertions.
new b726f82 Disable SonarQube locally.
The 2 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails. The revisions
listed as "add" were already present in the repository and have only
been added to this reference.
Summary of changes:
.../org/apache/commons/numbers/angle/PlaneAngleRadiansTest.java | 8 ++++----
.../test/java/org/apache/commons/numbers/complex/ComplexTest.java | 1 +
2 files changed, 5 insertions(+), 4 deletions(-)
[commons-numbers] 02/02: Disable SonarQube locally.
Posted by er...@apache.org.
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 b726f8299aee7769ad317f7251eec414c8d63548
Author: Gilles Sadowski <gi...@harfang.homelinux.org>
AuthorDate: Wed Dec 4 23:40:01 2019 +0100
Disable SonarQube locally.
---
.../src/test/java/org/apache/commons/numbers/complex/ComplexTest.java | 1 +
1 file changed, 1 insertion(+)
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 977553b..3a56b00 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
@@ -819,6 +819,7 @@ public class ComplexTest {
@Test
@Disabled("Used to output the java environment")
public void testJava() {
+ // NOSONAR
// CHECKSTYLE: stop Regexp
System.out.println(">>testJava()");
// MathTest#testExpSpecialCases() checks the following:
[commons-numbers] 01/02: Order of arguments in Junit assertions.
Posted by er...@apache.org.
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 d59daba7a06349db19a044068a90b1ed32e5c5a3
Author: Gilles Sadowski <gi...@harfang.homelinux.org>
AuthorDate: Wed Dec 4 23:35:33 2019 +0100
Order of arguments in Junit assertions.
Reported by "sonarcloud.io".
---
.../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 27a99e3..7c98333 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(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);
+ 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);
}
// Test constants using "sin" and "cos".