From 57830827b9bc13aad7af6ab899f25b278b248ef7 Mon Sep 17 00:00:00 2001 From: Kamil Doległo Date: Thu, 31 Oct 2019 11:47:41 +0100 Subject: [WIP] commit before rebase --- .../kotlin/markdownParser/MarkdownParserTest.kt | 28 ++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 core/src/test/kotlin/markdownParser/MarkdownParserTest.kt (limited to 'core/src/test') 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()) + } + +} + -- cgit