4
0
Fork 0
mirror of https://github.com/Anvilcraft/modpacktools synced 2024-06-02 10:39:59 +02:00
modpacktools/src/test/kotlin/ley/anvil/modpacktools/util/BuilderContainerTagTest.kt

20 lines
448 B
Kotlin
Raw Normal View History

package ley.anvil.modpacktools.util
import ley.anvil.modpacktools.util.BuilderContainerTag.Companion.html
import org.junit.Assert.assertEquals
import org.junit.Test
class BuilderContainerTagTest {
@Test
fun htmlBuilder() {
assertEquals(
"<html><body><h1>Hello</h1></body></html>",
html {
"body" {
"h1"("Hello")
}
}.render()
)
}
}