diff options
author | Roman / Linnea Gräf <roman.graef@gmail.com> | 2023-06-17 14:27:51 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-06-17 22:27:51 +1000 |
commit | a04daf73a1a1d125177ba1cd47a0d21c3a969e73 (patch) | |
tree | 0841135a264b5b3aab178e01dfdb9b7360289ad1 /src/test | |
parent | 4547611cda30c3169babb46fa71442ffd8fa80a1 (diff) | |
download | NotEnoughUpdates-a04daf73a1a1d125177ba1cd47a0d21c3a969e73.tar.gz NotEnoughUpdates-a04daf73a1a1d125177ba1cd47a0d21c3a969e73.tar.bz2 NotEnoughUpdates-a04daf73a1a1d125177ba1cd47a0d21c3a969e73.zip |
Add special mayor to calendar overlay (#685)
Diffstat (limited to 'src/test')
-rw-r--r-- | src/test/kotlin/io/github/moulberry/notenoughupdates/util/SkyBlockTimeTest.kt | 7 |
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))) } |