jmeter-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From fschumac...@apache.org
Subject [jmeter] 01/07: Java floats are not that precise. Silence ErrorProne waring
Date Sun, 21 Feb 2021 10:01:16 GMT
This is an automated email from the ASF dual-hosted git repository.

fschumacher pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/jmeter.git

commit 953b394d6ae455269147e4e316afbb137ec93aa0
Author: Felix Schumacher <felix.schumacher@internetallee.de>
AuthorDate: Sun Feb 21 10:17:22 2021 +0100

    Java floats are not that precise. Silence ErrorProne waring
---
 .../src/test/java/org/apache/jorphan/math/TestStatCalculator.java       | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/jorphan/src/test/java/org/apache/jorphan/math/TestStatCalculator.java b/src/jorphan/src/test/java/org/apache/jorphan/math/TestStatCalculator.java
index c9de55a..c0cc5d6 100644
--- a/src/jorphan/src/test/java/org/apache/jorphan/math/TestStatCalculator.java
+++ b/src/jorphan/src/test/java/org/apache/jorphan/math/TestStatCalculator.java
@@ -80,7 +80,7 @@ public class TestStatCalculator {
         calc.addValue(15);
         calc.addValue(21);
         assertEquals(16, (int) calc.getMean());
-        assertEquals(8.0622577F, (float) calc.getStandardDeviation(), 0F);
+        assertEquals(8.062258F, (float) calc.getStandardDeviation(), 0F);
         assertEquals(30, calc.getMax().intValue());
         assertEquals(3, calc.getMin().intValue());
         assertEquals(15, calc.getMedian().intValue());


Mime
View raw message