summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLinnea Gräf <nea@nea.moe>2024-05-02 23:04:54 +0200
committerLinnea Gräf <nea@nea.moe>2024-05-02 23:04:54 +0200
commitebe41fbbd8b537b3008c5c52d2c9a496694ea281 (patch)
treec2ca5a5ef9128274d817bab7359d5c7dcb4bccf9
parent5316d761132a28df639eb70099c8af367f792733 (diff)
downloadblog-infra-ebe41fbbd8b537b3008c5c52d2c9a496694ea281.tar.gz
blog-infra-ebe41fbbd8b537b3008c5c52d2c9a496694ea281.tar.bz2
blog-infra-ebe41fbbd8b537b3008c5c52d2c9a496694ea281.zip
Add more paragraph tests
-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