diff options
author | Dmitry Jemerov <yole@jetbrains.com> | 2017-02-24 14:23:29 +0100 |
---|---|---|
committer | Dmitry Jemerov <yole@jetbrains.com> | 2017-02-24 14:23:29 +0100 |
commit | 004fc0c4eaf9d1ecaa78cf97f7d0fb2e91405031 (patch) | |
tree | c1d8e719e91cfd2bb6755d26e30a81aa0f6a84a5 /core/src/test/kotlin | |
parent | 5b90b573476f63366a5253280f5be5d68ac08a6d (diff) | |
parent | 64c8f35c00fcf483da76451b276e750533fbe9a4 (diff) | |
download | dokka-004fc0c4eaf9d1ecaa78cf97f7d0fb2e91405031.tar.gz dokka-004fc0c4eaf9d1ecaa78cf97f7d0fb2e91405031.tar.bz2 dokka-004fc0c4eaf9d1ecaa78cf97f7d0fb2e91405031.zip |
Merge branch 'website-samples'
Diffstat (limited to 'core/src/test/kotlin')
-rw-r--r-- | core/src/test/kotlin/format/KotlinWebSiteRunnableSamplesFormatTest.kt | 4 | ||||
-rw-r--r-- | core/src/test/kotlin/model/CommentTest.kt | 3 |
2 files changed, 6 insertions, 1 deletions
diff --git a/core/src/test/kotlin/format/KotlinWebSiteRunnableSamplesFormatTest.kt b/core/src/test/kotlin/format/KotlinWebSiteRunnableSamplesFormatTest.kt index ca38c604..3e46ead7 100644 --- a/core/src/test/kotlin/format/KotlinWebSiteRunnableSamplesFormatTest.kt +++ b/core/src/test/kotlin/format/KotlinWebSiteRunnableSamplesFormatTest.kt @@ -20,6 +20,10 @@ class KotlinWebSiteRunnableSamplesFormatTest { verifyKWSNodeByName("sampleWithAsserts", "a") } + @Test fun newLinesInSamples() { + verifyKWSNodeByName("newLinesInSamples", "foo") + } + private fun verifyKWSNodeByName(fileName: String, name: String) { verifyOutput("testdata/format/website-samples/$fileName.kt", ".md", format = "kotlin-website-samples") { model, output -> kwsService.createOutputBuilder(output, tempLocation).appendNodes(model.members.single().members.filter { it.name == name }) diff --git a/core/src/test/kotlin/model/CommentTest.kt b/core/src/test/kotlin/model/CommentTest.kt index 25fea48d..0d919128 100644 --- a/core/src/test/kotlin/model/CommentTest.kt +++ b/core/src/test/kotlin/model/CommentTest.kt @@ -153,7 +153,8 @@ line two""", toTestString()) with(model.members.single().members.first()) { assertEquals("Summary", content.summary.toTestString()) with (content.description) { - assertEqualsIgnoringSeparators("""[code lang=kotlin] + assertEqualsIgnoringSeparators(""" + |[code lang=kotlin] |if (true) { | println(property) |} |