From dfc1b87a251f9c080eb1a66bbda7363aa76271d6 Mon Sep 17 00:00:00 2001 From: Rsl1122 Date: Thu, 5 Apr 2018 19:14:47 +0300 Subject: [PATCH] Fixed decimal format tests failing on some machines --- .../java/com/djrapitops/plan/utilities/FormatUtilsTest.java | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/Plan/src/test/java/com/djrapitops/plan/utilities/FormatUtilsTest.java b/Plan/src/test/java/com/djrapitops/plan/utilities/FormatUtilsTest.java index e2066fc4a..ac4e2e1fb 100644 --- a/Plan/src/test/java/com/djrapitops/plan/utilities/FormatUtilsTest.java +++ b/Plan/src/test/java/com/djrapitops/plan/utilities/FormatUtilsTest.java @@ -141,21 +141,19 @@ public class FormatUtilsTest { @Test public void testCutDecimalsWhichIsRoundedDown() { double d = 0.05234; - String expResult = "0,05"; String result = FormatUtils.cutDecimals(d); - assertEquals(expResult, result); + assertTrue("0.05".equals(result) || "0,05".equals(result)); } @Test public void testCutDecimalsWhichIsRoundedUp() { double d = 0.05634; - String expResult = "0,06"; String result = FormatUtils.cutDecimals(d); - assertEquals(expResult, result); + assertTrue("0.06".equals(result) || "0,06".equals(result)); } @Test