aboutsummaryrefslogtreecommitdiff
path: root/core/src/test/kotlin/format
diff options
context:
space:
mode:
authorSimon Ogorodnik <Simon.Ogorodnik@jetbrains.com>2017-12-05 18:16:04 +0300
committerSimon Ogorodnik <Simon.Ogorodnik@jetbrains.com>2017-12-05 18:16:04 +0300
commitb209ddcfc2d532f4dc5e508e00d89335fdb15caa (patch)
tree4ce09c842846efa76aa42f4282bb69664cdaf4df /core/src/test/kotlin/format
parent7aa5b52a7e8cd69a384ef29aeeb199061b92584f (diff)
downloaddokka-b209ddcfc2d532f4dc5e508e00d89335fdb15caa.tar.gz
dokka-b209ddcfc2d532f4dc5e508e00d89335fdb15caa.tar.bz2
dokka-b209ddcfc2d532f4dc5e508e00d89335fdb15caa.zip
Append line before file path in testData
Diffstat (limited to 'core/src/test/kotlin/format')
-rw-r--r--core/src/test/kotlin/format/FileGeneratorTestCase.kt3
1 files changed, 3 insertions, 0 deletions
diff --git a/core/src/test/kotlin/format/FileGeneratorTestCase.kt b/core/src/test/kotlin/format/FileGeneratorTestCase.kt
index 6d70292f..644d5baa 100644
--- a/core/src/test/kotlin/format/FileGeneratorTestCase.kt
+++ b/core/src/test/kotlin/format/FileGeneratorTestCase.kt
@@ -27,6 +27,9 @@ abstract class FileGeneratorTestCase {
val byLocations = nodes.groupBy { location(it) }
byLocations.forEach { (loc, _) ->
if (byLocations.size > 1) {
+ if (sb.isNotBlank() && !sb.endsWith('\n')) {
+ sb.appendln()
+ }
sb.appendln("<!-- File: ${relativeToRoot(loc)} -->")
}
sb.append(loc.file.readText())