aboutsummaryrefslogtreecommitdiff
path: root/test/src/markdown/ParserTest.kt
diff options
context:
space:
mode:
Diffstat (limited to 'test/src/markdown/ParserTest.kt')
-rw-r--r--test/src/markdown/ParserTest.kt52
1 files changed, 52 insertions, 0 deletions
diff --git a/test/src/markdown/ParserTest.kt b/test/src/markdown/ParserTest.kt
new file mode 100644
index 00000000..b4538b07
--- /dev/null
+++ b/test/src/markdown/ParserTest.kt
@@ -0,0 +1,52 @@
+package org.jetbrains.dokka.tests
+
+import org.junit.Test
+import org.jetbrains.dokka.*
+
+public class ParserTest {
+ Test fun text() {
+ val markdown = MarkdownProcessor().parse("text")
+ println(markdown.dump())
+ }
+
+ Test fun textWithSpaces() {
+ val markdown = MarkdownProcessor().parse("text and string")
+ println(markdown.dump())
+ }
+
+ Test fun multiline() {
+ val markdown = MarkdownProcessor().parse(
+"""
+text
+and
+string
+""")
+ println(markdown.dump())
+ }
+
+ Test fun para() {
+ val markdown = MarkdownProcessor().parse(
+"""paragraph number
+one
+
+paragraph
+number two
+""")
+ println(markdown.dump())
+ }
+
+ Test fun bulletList() {
+ val markdown = MarkdownProcessor().parse(
+"""
+* list item 1
+* list item 2
+""")
+ println(markdown.dump())
+ }
+
+ Test fun emph() {
+ val markdown = MarkdownProcessor().parse("*text*")
+ println(markdown.dump())
+ }
+}
+