aboutsummaryrefslogtreecommitdiff
path: root/src/test/java/de/hysky
diff options
context:
space:
mode:
authorupfault.lol <johian2004@gmail.com>2025-03-02 22:08:45 -0600
committerGitHub <noreply@github.com>2025-03-03 12:08:45 +0800
commit0d0aae6b88b34d7f85ba397eea2469fb4a95a51e (patch)
tree305dfaaf2ae59cbe7ec0ab176b1514613bc17ad0 /src/test/java/de/hysky
parente428f5aca33d42bf35f6ee0dc8edc8df2cc753b3 (diff)
downloadSkyblocker-0d0aae6b88b34d7f85ba397eea2469fb4a95a51e.tar.gz
Skyblocker-0d0aae6b88b34d7f85ba397eea2469fb4a95a51e.tar.bz2
Skyblocker-0d0aae6b88b34d7f85ba397eea2469fb4a95a51e.zip
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>
Diffstat (limited to 'src/test/java/de/hysky')
-rw-r--r--src/test/java/de/hysky/skyblocker/utils/FormattersTest.java7
1 files changed, 7 insertions, 0 deletions
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
@@ -49,6 +49,13 @@ public class FormattersTest {
}
@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;
long Fri_Jan_31st_2025_at_11_11_00_AM = 1738321860000L;