diff options
author | Linnea Gräf <nea@nea.moe> | 2024-11-27 16:04:05 +0100 |
---|---|---|
committer | Linnea Gräf <nea@nea.moe> | 2024-11-27 16:05:19 +0100 |
commit | ee0526ac67e093f77d17747d9316765b2db272a2 (patch) | |
tree | 1e2f8a26475afcc8c0d36b85068e1a2b282410ab /src/test/kotlin/util/TextUtilText.kt | |
parent | 9df1f12970dafdbf4cb13c76c1df1caed66f4a59 (diff) | |
download | Firmament-ee0526ac67e093f77d17747d9316765b2db272a2.tar.gz Firmament-ee0526ac67e093f77d17747d9316765b2db272a2.tar.bz2 Firmament-ee0526ac67e093f77d17747d9316765b2db272a2.zip |
test: Use kotest
Diffstat (limited to 'src/test/kotlin/util/TextUtilText.kt')
-rw-r--r-- | src/test/kotlin/util/TextUtilText.kt | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/test/kotlin/util/TextUtilText.kt b/src/test/kotlin/util/TextUtilText.kt index 7091f4e..e676d63 100644 --- a/src/test/kotlin/util/TextUtilText.kt +++ b/src/test/kotlin/util/TextUtilText.kt @@ -1,15 +1,17 @@ package moe.nea.firmament.test.util +import io.kotest.core.spec.style.AnnotationSpec 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 { +class TextUtilText : AnnotationSpec() { @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()) + 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()) } } |