diff options
author | Linnea Gräf <nea@nea.moe> | 2024-10-24 14:49:21 +0200 |
---|---|---|
committer | Linnea Gräf <nea@nea.moe> | 2024-10-24 14:49:21 +0200 |
commit | 0357245e88be4b8cd3d0681340d9a7065361ea74 (patch) | |
tree | cb52c479bc029295075ceeaa04251fae63ec5e50 /src/test/kotlin/util/TextUtilText.kt | |
parent | 6100b8c9a0fe42be52a759b429f532c12cc72a32 (diff) | |
download | Firmament-0357245e88be4b8cd3d0681340d9a7065361ea74.tar.gz Firmament-0357245e88be4b8cd3d0681340d9a7065361ea74.tar.bz2 Firmament-0357245e88be4b8cd3d0681340d9a7065361ea74.zip |
Add getLegacyFormatString method
[no changelog]
Diffstat (limited to 'src/test/kotlin/util/TextUtilText.kt')
-rw-r--r-- | src/test/kotlin/util/TextUtilText.kt | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/test/kotlin/util/TextUtilText.kt b/src/test/kotlin/util/TextUtilText.kt new file mode 100644 index 0000000..7091f4e --- /dev/null +++ b/src/test/kotlin/util/TextUtilText.kt @@ -0,0 +1,15 @@ +package moe.nea.firmament.test.util + +import org.junit.jupiter.api.Assertions +import org.junit.jupiter.api.Test +import moe.nea.firmament.test.testutil.ItemResources +import moe.nea.firmament.util.getLegacyFormatString + +class TextUtilText { + @Test + fun testThing() { + // TODO: add more tests that are directly validated with 1.8.9 code + val text = ItemResources.loadText("all-chat") + Assertions.assertEquals("§r§r§8[§r§9302§r§8] §r§6♫ §r§b[MVP§r§d+§r§b] lrg89§r§f: test§r", text.getLegacyFormatString()) + } +} |