summaryrefslogtreecommitdiff
path: root/src/test/kotlin/moe/nea/blog/md/test/ListTest.kt
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/kotlin/moe/nea/blog/md/test/ListTest.kt')
-rw-r--r--src/test/kotlin/moe/nea/blog/md/test/ListTest.kt22
1 files changed, 22 insertions, 0 deletions
diff --git a/src/test/kotlin/moe/nea/blog/md/test/ListTest.kt b/src/test/kotlin/moe/nea/blog/md/test/ListTest.kt
index 0ac8f1e..241929f 100644
--- a/src/test/kotlin/moe/nea/blog/md/test/ListTest.kt
+++ b/src/test/kotlin/moe/nea/blog/md/test/ListTest.kt
@@ -7,13 +7,19 @@ class ListTest : MarkdownTest() {
fun testBasicList() {
assertDocumentFormat(
"""
+ <p>
Some Text:
+ </p>
<list>
<element>
+ <p>
First
+ </p>
</element>
<element>
+ <p>
Second
+ </p>
</element>
</list>
""".trimIndent(),
@@ -28,14 +34,22 @@ class ListTest : MarkdownTest() {
fun testBlockContinuation() {
assertDocumentFormat(
"""
+ <p>
Some Text:
+ </p>
<list>
<element>
+ <p>
First More First
+ </p>
</element>
<element>
+ <p>
Second
+ </p>
+ <p>
More Second
+ </p>
</element>
</list>
""".trimIndent(),
@@ -53,18 +67,26 @@ class ListTest : MarkdownTest() {
fun testNestedLists() {
assertDocumentFormat(
"""
+ <p>
Some Text:
+ </p>
<list>
<element>
+ <p>
First
+ </p>
<list>
<element>
+ <p>
Another List
+ </p>
</element>
</list>
</element>
<element>
+ <p>
Second
+ </p>
</element>
</list>
""".trimIndent(),