diff options
author | Kamil Doległo <kamilok1965@interia.pl> | 2019-10-31 11:47:41 +0100 |
---|---|---|
committer | Kamil Doległo <kamilok1965@interia.pl> | 2019-10-31 11:48:04 +0100 |
commit | 57830827b9bc13aad7af6ab899f25b278b248ef7 (patch) | |
tree | ff9647031cac2560b7593828c8370f4e73616521 /core/src/test | |
parent | c33e8e16a0e446b78496cbcd878ba76ea51c0940 (diff) | |
download | dokka-57830827b9bc13aad7af6ab899f25b278b248ef7.tar.gz dokka-57830827b9bc13aad7af6ab899f25b278b248ef7.tar.bz2 dokka-57830827b9bc13aad7af6ab899f25b278b248ef7.zip |
[WIP] commit before rebase
Diffstat (limited to 'core/src/test')
-rw-r--r-- | core/src/test/kotlin/markdownParser/MarkdownParserTest.kt | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/core/src/test/kotlin/markdownParser/MarkdownParserTest.kt b/core/src/test/kotlin/markdownParser/MarkdownParserTest.kt new file mode 100644 index 00000000..466d78a6 --- /dev/null +++ b/core/src/test/kotlin/markdownParser/MarkdownParserTest.kt @@ -0,0 +1,28 @@ +package org.jetbrains.dokka.tests.markdownParser + +import junit.framework.Assert.assertEquals +import junit.framework.Assert.assertTrue +import org.jetbrains.dokka.DokkaConfiguration +import org.jetbrains.dokka.links.DRI +import org.jetbrains.dokka.pages.buildContent +import org.jetbrains.dokka.parseMarkdown +import org.jetbrains.dokka.resolvers.ExternalLocationProvider +import org.junit.Test + + +class MarkdownParserTest { + + @Test fun basicTest() { + val markdown = """ + # Header 1 test + this is some text + more text + let's say there are some parentheses, like ( and ) + """.trimIndent() + val node = parseMarkdown(markdown) + val content = buildContent(node, emptyList()) + assertTrue(content.isNotEmpty()) + } + +} + |