summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/test/kotlin/moe/nea/blog/md/test/ParagraphTest.kt45
1 files changed, 45 insertions, 0 deletions
diff --git a/src/test/kotlin/moe/nea/blog/md/test/ParagraphTest.kt b/src/test/kotlin/moe/nea/blog/md/test/ParagraphTest.kt
new file mode 100644
index 0000000..9e12cfe
--- /dev/null
+++ b/src/test/kotlin/moe/nea/blog/md/test/ParagraphTest.kt
@@ -0,0 +1,45 @@
+package moe.nea.blog.md.test
+
+import kotlin.test.Test
+
+class ParagraphTest : MarkdownTest() {
+
+ @Test
+ fun testParagraph() {
+ assertDocumentFormat("""
+ |a b
+ |
+ |c d
+ """.trimMargin(), """
+ |a
+ |b
+ |
+ |
+ |c d
+ |
+ """.trimMargin())
+ }
+
+ @Test
+ fun testCodeBlock() {
+ assertDocumentFormat("""
+ |a b
+ |
+ |c d
+ |<code language=java>
+ |public static final String TEST = "TEST";
+ |</code>
+ """.trimMargin(), """
+ |a
+ |b
+ |
+ |
+ |c d
+ |```java
+ |public static final String TEST = "TEST";
+ |```
+ |
+ """.trimMargin())
+ }
+
+} \ No newline at end of file