aboutsummaryrefslogtreecommitdiff
path: root/src/test/kotlin/util/TextUtilText.kt
blob: e676d63d7e21eeea846a6d261e0048f030a160c6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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 : 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())
	}
}