From ac7d62caa26c48d26ebe9912c968bd337f70b56c Mon Sep 17 00:00:00 2001 From: T45K Date: Tue, 4 Aug 2020 17:15:40 +0900 Subject: [PATCH] Boxing float value --- src/main/java/org/junit/Assert.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/org/junit/Assert.java b/src/main/java/org/junit/Assert.java index 3221f29e56b1..65bbc9d3f7ff 100644 --- a/src/main/java/org/junit/Assert.java +++ b/src/main/java/org/junit/Assert.java @@ -596,7 +596,7 @@ public static void assertEquals(String message, float expected, public static void assertNotEquals(String message, float unexpected, float actual, float delta) { if (!floatIsDifferent(unexpected, actual, delta)) { - failEquals(message, actual); + failEquals(message, Float.valueOf(actual)); } }