diff options
author | Ilya Ryzhenkov <orangy@jetbrains.com> | 2014-12-16 21:41:32 +0300 |
---|---|---|
committer | Ilya Ryzhenkov <orangy@jetbrains.com> | 2014-12-16 21:41:32 +0300 |
commit | bd6cddd932c308519ce386197b93de145462bec2 (patch) | |
tree | 5cb04a2cd8f7dfd7e1c679f16977a51d5d966faa /test/src/markdown | |
parent | 9535260e7b9f1483fbbfcf0abf4c171311fd92b7 (diff) | |
download | dokka-bd6cddd932c308519ce386197b93de145462bec2.tar.gz dokka-bd6cddd932c308519ce386197b93de145462bec2.tar.bz2 dokka-bd6cddd932c308519ce386197b93de145462bec2.zip |
Process short links.
Diffstat (limited to 'test/src/markdown')
-rw-r--r-- | test/src/markdown/ParserTest.kt | 20 |
1 files changed, 13 insertions, 7 deletions
diff --git a/test/src/markdown/ParserTest.kt b/test/src/markdown/ParserTest.kt index 16892f23..80ee7332 100644 --- a/test/src/markdown/ParserTest.kt +++ b/test/src/markdown/ParserTest.kt @@ -5,12 +5,18 @@ import org.jetbrains.dokka import org.jetbrains.dokka.toTestString import org.jetbrains.dokka.toHtml import org.jetbrains.dokka.parseMarkdown +import org.junit.Ignore -public class ParserTest { +Ignore public class ParserTest { fun runTestFor(text : String) { + println("MD: ---") + println(text) val markdownTree = parseMarkdown(text) + println("AST: ---") println(markdownTree.toTestString()) + println("HTML: ---") println(markdownTree.toHtml()) + println() } Test fun text() { @@ -89,20 +95,20 @@ number two } Test fun emphAndEmptySection() { - runTestFor("*text* \$sec:") + runTestFor("*text*\n\$sec:\n") } Test fun emphAndSection() { - runTestFor("*text* \$sec: some text") + runTestFor("*text*\n\$sec: some text\n") } Test fun emphAndBracedSection() { - runTestFor("Text *bold* text \${sec}: some text") + runTestFor("Text *bold* text \n\${sec}: some text") } Test fun section() { runTestFor( - "Plain text \$one: Summary \${two}: Description with *emphasis* \${An example of a section}: Example") + "Plain text \n\$one: Summary \n\${two}: Description with *emphasis* \n\${An example of a section}: Example") } Test fun anonymousSection() { @@ -111,12 +117,12 @@ number two Test fun specialSection() { runTestFor( - "Plain text \$\$summary: Summary \${\$description}: Description \${\$An example of a section}: Example") + "Plain text \n\$\$summary: Summary \n\${\$description}: Description \n\${\$An example of a section}: Example") } Test fun emptySection() { runTestFor( - "Plain text \$summary:") + "Plain text \n\$summary:") } val b = "$" |