aboutsummaryrefslogtreecommitdiff
path: root/src/test/kotlin
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/kotlin')
-rw-r--r--src/test/kotlin/io/github/moulberry/notenoughupdates/util/SkyBlockTimeTest.kt7
1 files changed, 7 insertions, 0 deletions
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
@@ -58,6 +58,13 @@ class SkyBlockTimeTest {
}
@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)))
}