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 2023/10/13 17:24:54 UTC
[commons-statistics] 01/03: Correct mapping of non-finite values
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-statistics.git
commit 125c9935ea1fcc0e43921a8f5831d5a10b1373a0
Author: Alex Herbert <ah...@apache.org>
AuthorDate: Fri Oct 13 16:41:26 2023 +0100
Correct mapping of non-finite values
---
.../apache/commons/statistics/descriptive/BaseDoubleStatisticTest.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/commons-statistics-descriptive/src/test/java/org/apache/commons/statistics/descriptive/BaseDoubleStatisticTest.java b/commons-statistics-descriptive/src/test/java/org/apache/commons/statistics/descriptive/BaseDoubleStatisticTest.java
index 705c4d6..de02458 100644
--- a/commons-statistics-descriptive/src/test/java/org/apache/commons/statistics/descriptive/BaseDoubleStatisticTest.java
+++ b/commons-statistics-descriptive/src/test/java/org/apache/commons/statistics/descriptive/BaseDoubleStatisticTest.java
@@ -365,7 +365,7 @@ abstract class BaseDoubleStatisticTest<S extends DoubleStatistic & DoubleStatist
sample[i] = mapValue(sample[i]);
}
final double expected = getExpectedNonFiniteValue(sample);
- dataNonFinite.add(new TestData(values, expected));
+ dataNonFinite.add(new TestData(sample, expected));
});
// Cache the custom test data so any computed expected values are calculated only once
streamTestData().forEach(dataCustom::add);