mirror of
https://github.com/Anvilcraft/modpacktools
synced 2024-06-02 10:39:59 +02:00
20 lines
448 B
Kotlin
20 lines
448 B
Kotlin
|
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()
|
||
|
)
|
||
|
}
|
||
|
}
|