From ebe41fbbd8b537b3008c5c52d2c9a496694ea281 Mon Sep 17 00:00:00 2001 From: Linnea Gräf Date: Thu, 2 May 2024 23:04:54 +0200 Subject: Add more paragraph tests --- .../kotlin/moe/nea/blog/md/test/ParagraphTest.kt | 45 ++++++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 src/test/kotlin/moe/nea/blog/md/test/ParagraphTest.kt 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 + | + |public static final String TEST = "TEST"; + | + """.trimMargin(), """ + |a + |b + | + | + |c d + |```java + |public static final String TEST = "TEST"; + |``` + | + """.trimMargin()) + } + +} \ No newline at end of file -- cgit