mirror of
https://gitlab.bixilon.de/bixilon/minosoft.git
synced 2025-09-17 19:35:00 -04:00
tests: test cuberite chat json (1.8)
It worked, but I felt a test is still needed
This commit is contained in:
parent
7f3e533e6d
commit
a0736183aa
@ -169,6 +169,13 @@ internal class ChatComponentTest {
|
|||||||
assertEquals(expected, actual)
|
assertEquals(expected, actual)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
fun cuberiteChatJson() {
|
||||||
|
val expected = BaseComponent(TextComponent("<"), TextComponent("Bixilon"), TextComponent("> "), TextComponent("hello"))
|
||||||
|
val actual = """{"extra":[{"text":"<"},{"text":"Bixilon"},{"text":"> "},{"text":"hello"}],"text":""}""".chat()
|
||||||
|
assertEquals(expected, actual)
|
||||||
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
fun testJson1() {
|
fun testJson1() {
|
||||||
val text = TextComponent("dummy")
|
val text = TextComponent("dummy")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user