diff options
author | Ilya Ryzhenkov <orangy@jetbrains.com> | 2014-09-25 23:09:49 +0400 |
---|---|---|
committer | Ilya Ryzhenkov <orangy@jetbrains.com> | 2014-09-25 23:09:49 +0400 |
commit | 5894bf2affa3bb7cada6d5aaec7c6b43283a8c73 (patch) | |
tree | bbb1323f299c627e2f9f191e726b7864074eeee6 /test/src | |
parent | f7bab78839cea5674658a6a0298f88ef5ccca019 (diff) | |
download | dokka-5894bf2affa3bb7cada6d5aaec7c6b43283a8c73.tar.gz dokka-5894bf2affa3bb7cada6d5aaec7c6b43283a8c73.tar.bz2 dokka-5894bf2affa3bb7cada6d5aaec7c6b43283a8c73.zip |
Add generated parser, lexer and some tests.
Diffstat (limited to 'test/src')
-rw-r--r-- | test/src/markdown/ParserTest.kt | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/test/src/markdown/ParserTest.kt b/test/src/markdown/ParserTest.kt index b4538b07..7b1522bc 100644 --- a/test/src/markdown/ParserTest.kt +++ b/test/src/markdown/ParserTest.kt @@ -14,6 +14,16 @@ public class ParserTest { println(markdown.dump()) } + Test fun link() { + val markdown = MarkdownProcessor().parse("text [links]") + println(markdown.dump()) + } + + Test fun linkWithHref() { + val markdown = MarkdownProcessor().parse("text [links](http://destination)") + println(markdown.dump()) + } + Test fun multiline() { val markdown = MarkdownProcessor().parse( """ @@ -44,6 +54,28 @@ number two println(markdown.dump()) } + Test fun bulletListWithLines() { + val markdown = MarkdownProcessor().parse( +""" +* list item 1 + continue 1 +* list item 2 + continue 2 + """) + println(markdown.dump()) + } + + Test fun bulletListStrong() { + val markdown = MarkdownProcessor().parse( +""" +* list *item* 1 + continue 1 +* list *item* 2 + continue 2 + """) + println(markdown.dump()) + } + Test fun emph() { val markdown = MarkdownProcessor().parse("*text*") println(markdown.dump()) |