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 2022/04/18 08:29:45 UTC

[commons-statistics] 02/02: Fix malformed format string

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 026ecd1bdcfda588fe551f7eba9ed3297d4758b5
Author: Arturo Bernal <ar...@gmail.com>
AuthorDate: Sun Apr 17 20:51:38 2022 +0200

    Fix malformed format string
---
 .../java/org/apache/commons/statistics/distribution/UserGuideTest.java  | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/commons-statistics-distribution/src/test/java/org/apache/commons/statistics/distribution/UserGuideTest.java b/commons-statistics-distribution/src/test/java/org/apache/commons/statistics/distribution/UserGuideTest.java
index ccc0893..b010210 100644
--- a/commons-statistics-distribution/src/test/java/org/apache/commons/statistics/distribution/UserGuideTest.java
+++ b/commons-statistics-distribution/src/test/java/org/apache/commons/statistics/distribution/UserGuideTest.java
@@ -34,7 +34,7 @@ class UserGuideTest {
         double upperTail = t.survivalProbability(2.75);       // P(T(29) &gt; 2.75)
 
         Assertions.assertTrue(lowerTail > upperTail,
-            () -> String.format("Since 2.75 > |-2.656|, expected %s > %s", lowerTail > upperTail));
+            () -> String.format("Since 2.75 > |-2.656|, expected %s > %s", lowerTail, upperTail));
     }
 
     @Test