aboutsummaryrefslogtreecommitdiff
path: root/core/src/test/kotlin/TestAPI.kt
diff options
context:
space:
mode:
authorSimon Ogorodnik <Simon.Ogorodnik@jetbrains.com>2017-06-05 18:28:49 +0300
committerSimon Ogorodnik <Simon.Ogorodnik@jetbrains.com>2017-06-07 17:19:45 +0300
commitfff865cb03d406a07190ad15a9cbf81cb4cfa36a (patch)
tree9f345ea4e34ef4e1872f424c846f129681404cea /core/src/test/kotlin/TestAPI.kt
parent6ca62b8b7b0bbe5df26e7e66b827926f9b1417d3 (diff)
downloaddokka-fff865cb03d406a07190ad15a9cbf81cb4cfa36a.tar.gz
dokka-fff865cb03d406a07190ad15a9cbf81cb4cfa36a.tar.bz2
dokka-fff865cb03d406a07190ad15a9cbf81cb4cfa36a.zip
Fix StringOutOfBoundsException in link mapping
#167 #KT-18213 fixed
Diffstat (limited to 'core/src/test/kotlin/TestAPI.kt')
-rw-r--r--core/src/test/kotlin/TestAPI.kt1
1 files changed, 1 insertions, 0 deletions
diff --git a/core/src/test/kotlin/TestAPI.kt b/core/src/test/kotlin/TestAPI.kt
index e11274ea..4799cd93 100644
--- a/core/src/test/kotlin/TestAPI.kt
+++ b/core/src/test/kotlin/TestAPI.kt
@@ -189,6 +189,7 @@ fun verifyJavaOutput(path: String,
}
fun assertEqualsIgnoringSeparators(expectedFile: File, output: String) {
+ if (!expectedFile.exists()) expectedFile.createNewFile()
val expectedText = expectedFile.readText().replace("\r\n", "\n")
val actualText = output.replace("\r\n", "\n")