package test.template import kotlin.template.* import kotlin.test.assertEquals import junit.framework.TestCase class HtmlTemplateTest : TestCase() { fun testTemplate(): Unit { val foo = "James" val bar = "x > 1" // Code generated by the following template expression: // // val actual = "
hey $bar
".toHtml() // TODO will use a tuple soon //val actual = StringTemplate(Tuple3hey ", bar, "
")).toHtml() val actual = StringTemplate(array("hey ", bar, "
")).toHtml() assertEquals("hey x > 1
", actual) } }