diff options
author | Simon Ogorodnik <Simon.Ogorodnik@jetbrains.com> | 2017-02-16 21:28:16 +0300 |
---|---|---|
committer | Dmitry Jemerov <yole@jetbrains.com> | 2017-02-23 11:20:13 +0100 |
commit | 7fa258873eab770577879e9721c0864449ba1114 (patch) | |
tree | fefbab3c102c00aa412dff4341c8160714f0c309 /core/src/test/kotlin/TestAPI.kt | |
parent | 2bd8bdf9dc0a8e48ce558b2eed0c8e8fd4883902 (diff) | |
download | dokka-7fa258873eab770577879e9721c0864449ba1114.tar.gz dokka-7fa258873eab770577879e9721c0864449ba1114.tar.bz2 dokka-7fa258873eab770577879e9721c0864449ba1114.zip |
Dokka now can detect and recognize SinceKotlin
Diffstat (limited to 'core/src/test/kotlin/TestAPI.kt')
-rw-r--r-- | core/src/test/kotlin/TestAPI.kt | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/core/src/test/kotlin/TestAPI.kt b/core/src/test/kotlin/TestAPI.kt index 108c5bbf..61eab562 100644 --- a/core/src/test/kotlin/TestAPI.kt +++ b/core/src/test/kotlin/TestAPI.kt @@ -141,7 +141,12 @@ private fun verifyModelOutput(it: DocumentationModule, outputGenerator(it, output) val ext = outputExtension.removePrefix(".") val path = sourcePath - val expectedOutput = File(path.replaceAfterLast(".", ext, path + "." + ext)).readText() + val expectedFileContent = File(path.replaceAfterLast(".", ext, path + "." + ext)).readText() + val expectedOutput = + if (ext.equals("html", true)) + expectedFileContent.lines().joinToString(separator = "\n", transform = String::trim) + else + expectedFileContent assertEqualsIgnoringSeparators(expectedOutput, output.toString()) } |