aboutsummaryrefslogtreecommitdiff
path: root/src/test/kotlin/io
diff options
context:
space:
mode:
authorRoman / Linnea Gräf <roman.graef@gmail.com>2023-06-17 14:27:51 +0200
committerGitHub <noreply@github.com>2023-06-17 22:27:51 +1000
commita04daf73a1a1d125177ba1cd47a0d21c3a969e73 (patch)
tree0841135a264b5b3aab178e01dfdb9b7360289ad1 /src/test/kotlin/io
parent4547611cda30c3169babb46fa71442ffd8fa80a1 (diff)
downloadNotEnoughUpdates-a04daf73a1a1d125177ba1cd47a0d21c3a969e73.tar.gz
NotEnoughUpdates-a04daf73a1a1d125177ba1cd47a0d21c3a969e73.tar.bz2
NotEnoughUpdates-a04daf73a1a1d125177ba1cd47a0d21c3a969e73.zip
Add special mayor to calendar overlay (#685)
Diffstat (limited to 'src/test/kotlin/io')
-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)))
}