) {
+ var tag = div().with(h1().with(a("Text")))
+ var tag1 = div() +
+ (h1("Title ") + a("Nu!", "http://www.nu.nl/"))
+ var tag2 = div() + (h1() + a("Text"))
+ var tag3 = tag2 + Text("Boehoe!")
+
+ var tag4 = tag + tag1 + tag2 + tag3
+
+ println(tag)
+ println(tag1)
+ println(tag2)
+ println(tag3)
+ println(tag4)
+
+ var tag5 = tag % tag1 % tag2 % tag3
+
+ println(tag)
+ println(tag5)
+}
diff --git a/test/nl/astraeus/tag/BasicTest.kt b/test/nl/astraeus/tag/BasicTest.kt
new file mode 100644
index 0000000..af9fea9
--- /dev/null
+++ b/test/nl/astraeus/tag/BasicTest.kt
@@ -0,0 +1,31 @@
+package nl.astraeus.tag
+
+import nl.astraeus.web.tag.div
+import nl.astraeus.web.tag.h1
+import nl.astraeus.web.tag.hr
+import org.junit.Test
+import kotlin.test.assertTrue
+
+/**
+ * Created by rnentjes on 20-10-15.
+ */
+
+class BasicTest {
+
+ @Test fun basicTest() {
+ var html = div().with(
+ h1("Hello world!")
+ ).with(hr())
+
+ assertTrue {
+ html.render().equals("Hello world!
")
+ }
+
+ var tst = html.render(pretty = true)
+
+ assertTrue {
+ html.render(pretty = true).equals("\n
\n Hello world!\n
\n
\n")
+ }
+ }
+
+}