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/12/08 15:54:20 UTC
[commons-numbers] branch master updated: Add another log1pmx test case to hit code coverage
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
The following commit(s) were added to refs/heads/master by this push:
new 67d49ed Add another log1pmx test case to hit code coverage
67d49ed is described below
commit 67d49edeb3e7c674b02e0cb4842b2a18fb1c5be1
Author: aherbert <ah...@apache.org>
AuthorDate: Wed Dec 8 15:54:11 2021 +0000
Add another log1pmx test case to hit code coverage
---
.../test/java/org/apache/commons/numbers/gamma/BoostGammaTest.java | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/commons-numbers-gamma/src/test/java/org/apache/commons/numbers/gamma/BoostGammaTest.java b/commons-numbers-gamma/src/test/java/org/apache/commons/numbers/gamma/BoostGammaTest.java
index 24b4500..1ff11b0 100644
--- a/commons-numbers-gamma/src/test/java/org/apache/commons/numbers/gamma/BoostGammaTest.java
+++ b/commons-numbers-gamma/src/test/java/org/apache/commons/numbers/gamma/BoostGammaTest.java
@@ -217,7 +217,7 @@ class BoostGammaTest {
TGAMMAP1M1(BoostGamma::tgamma1pm1, "gamma1pm1_data.csv", 1.8, 0.6),
/** log(1+x) - 1 data. */
- LOG1PMX(SpecialMath::log1pmx, "log1pmx_data.csv", 0.9, 0.15);
+ LOG1PMX(SpecialMath::log1pmx, "log1pmx_data.csv", -0.9, 0.15);
/** The function. */
private final DoubleUnaryOperator fun;
@@ -801,7 +801,7 @@ class BoostGammaTest {
* @param x Argument x
*/
@ParameterizedTest
- @ValueSource(doubles = {-1.1, -1, 0, 1, 1.5, 2, 3})
+ @ValueSource(doubles = {-1.1, -1, -0.9, 0, 1, 1.5, 2, 3})
void testLog1pmxStandard(double x) {
Assertions.assertEquals(Math.log1p(x) - x, SpecialMath.log1pmx(x));
}