From 0d0aae6b88b34d7f85ba397eea2469fb4a95a51e Mon Sep 17 00:00:00 2001 From: "upfault.lol" Date: Sun, 2 Mar 2025 22:08:45 -0600 Subject: Garden Tweaks & Features (#1118) * Sum visitors with alike crops, fix Farming XP/h regex, and improve precision for XP/h and Blocks/s * Added Show Stacks in Visitor Helper * Re-added the drawItemEntry into drawScreen * VacuumSolver, VisitorHelper, PestHighlighter * Forgot to fix highlight flicker in VacuumSolver * removed imports from MBB * Updated Regex & MayorUtils catch block * Forgot to add the visitor head and name coloring back into the render method during some tests * Refactor visitor package name * Clean up visitor helper and garden * Clean up visitor helper some more * Fix visitor requirements * Fix block breaks * Use primitive types and fixes * Missed a primitive * Remove vacuum solver * Fix amount parsing --------- Co-authored-by: Kevinthegreat <92656833+kevinthegreat1@users.noreply.github.com> --- src/test/java/de/hysky/skyblocker/utils/FormattersTest.java | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/test/java/de/hysky') diff --git a/src/test/java/de/hysky/skyblocker/utils/FormattersTest.java b/src/test/java/de/hysky/skyblocker/utils/FormattersTest.java index a564eb06..768a4463 100644 --- a/src/test/java/de/hysky/skyblocker/utils/FormattersTest.java +++ b/src/test/java/de/hysky/skyblocker/utils/FormattersTest.java @@ -48,6 +48,13 @@ public class FormattersTest { Assertions.assertEquals("24.7K", Formatters.SHORT_FLOAT_NUMBERS.format(24_740)); } + @Test + void testParseNumbers() { + Assertions.assertInstanceOf(Long.class, Formatters.parseNumber("1,024")); + Assertions.assertEquals(1024, Formatters.parseNumber("1,024").intValue()); + Assertions.assertEquals(123_456.789, Formatters.parseNumber("123,456.789")); + } + @Test void testDates() { long Thu_Jan_30th_2025_at_4_10_00_PM = 1738253400000L; -- cgit