aboutsummaryrefslogtreecommitdiff
path: root/core/src/test/kotlin
diff options
context:
space:
mode:
Diffstat (limited to 'core/src/test/kotlin')
-rw-r--r--core/src/test/kotlin/format/FileGeneratorTestCase.kt2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/src/test/kotlin/format/FileGeneratorTestCase.kt b/core/src/test/kotlin/format/FileGeneratorTestCase.kt
index 948426ea..ef9e815d 100644
--- a/core/src/test/kotlin/format/FileGeneratorTestCase.kt
+++ b/core/src/test/kotlin/format/FileGeneratorTestCase.kt
@@ -27,7 +27,7 @@ abstract class FileGeneratorTestCase {
if (sb.isNotBlank() && !sb.endsWith('\n')) {
sb.appendln()
}
- sb.appendln("<!-- File: ${relativeToRoot(loc).toUnixString()} -->")
+ sb.appendln("<!-- File: ${loc.file.relativeTo(root).toUnixString()} -->")
}
sb.append(loc.file.readText())
}