From a04daf73a1a1d125177ba1cd47a0d21c3a969e73 Mon Sep 17 00:00:00 2001 From: Roman / Linnea Gräf Date: Sat, 17 Jun 2023 14:27:51 +0200 Subject: Add special mayor to calendar overlay (#685) --- .../io/github/moulberry/notenoughupdates/util/SkyBlockTimeTest.kt | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/test/kotlin') diff --git a/src/test/kotlin/io/github/moulberry/notenoughupdates/util/SkyBlockTimeTest.kt b/src/test/kotlin/io/github/moulberry/notenoughupdates/util/SkyBlockTimeTest.kt index 8d762460..fcce95df 100644 --- a/src/test/kotlin/io/github/moulberry/notenoughupdates/util/SkyBlockTimeTest.kt +++ b/src/test/kotlin/io/github/moulberry/notenoughupdates/util/SkyBlockTimeTest.kt @@ -57,6 +57,13 @@ class SkyBlockTimeTest { ), (1..12).map { SkyBlockTime.monthName(it) }) } + @Test + fun monthInverse() { + (1..12).forEach { + assertEquals(it, SkyBlockTime.monthNameToInt(SkyBlockTime.monthName(it))) + } + } + @Test fun theOriginOfTime() { assertEquals(SkyBlockTime(year = 0), SkyBlockTime.fromInstant(Instant.ofEpochMilli(1559829300000L))) -- cgit