diff options
author | Simon Ogorodnik <Simon.Ogorodnik@jetbrains.com> | 2017-02-27 18:40:36 +0300 |
---|---|---|
committer | Simon Ogorodnik <Simon.Ogorodnik@jetbrains.com> | 2017-02-27 18:40:36 +0300 |
commit | 20b3b0d018248cbde0c509603c52c36445d996f0 (patch) | |
tree | b5cae467cec1b07a3afb9a9b2a3c8ed10732aea8 /core/src/test | |
parent | 289d287993b4618f73ebcbc5056a5495238a5836 (diff) | |
download | dokka-20b3b0d018248cbde0c509603c52c36445d996f0.tar.gz dokka-20b3b0d018248cbde0c509603c52c36445d996f0.tar.bz2 dokka-20b3b0d018248cbde0c509603c52c36445d996f0.zip |
Fix loosing of line breaks inside import list for kotlin-website-samples format
Diffstat (limited to 'core/src/test')
-rw-r--r-- | core/src/test/kotlin/format/KotlinWebSiteRunnableSamplesFormatTest.kt | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/core/src/test/kotlin/format/KotlinWebSiteRunnableSamplesFormatTest.kt b/core/src/test/kotlin/format/KotlinWebSiteRunnableSamplesFormatTest.kt index 3e46ead7..0d586814 100644 --- a/core/src/test/kotlin/format/KotlinWebSiteRunnableSamplesFormatTest.kt +++ b/core/src/test/kotlin/format/KotlinWebSiteRunnableSamplesFormatTest.kt @@ -24,6 +24,10 @@ class KotlinWebSiteRunnableSamplesFormatTest { verifyKWSNodeByName("newLinesInSamples", "foo") } + @Test fun newLinesInImportList() { + verifyKWSNodeByName("newLinesInImportList", "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 }) |