aboutsummaryrefslogtreecommitdiff
path: root/core/src/test/kotlin
diff options
context:
space:
mode:
authorSimon Ogorodnik <sem-oro@yandex.ru>2016-12-06 16:25:30 +0300
committerGitHub <noreply@github.com>2016-12-06 16:25:30 +0300
commit378be37160fde0041cf88f3dfa53e9db3ec3e219 (patch)
tree42c3a46f9d460b9fd75dea3d6560bcebeb4a78fc /core/src/test/kotlin
parent2d03ad01f650bc997dce076abaab0a61c2301a96 (diff)
downloaddokka-378be37160fde0041cf88f3dfa53e9db3ec3e219.tar.gz
dokka-378be37160fde0041cf88f3dfa53e9db3ec3e219.tar.bz2
dokka-378be37160fde0041cf88f3dfa53e9db3ec3e219.zip
KT-14818 Render function type argument names in generated documentation (#116)
Fix for KT-14818 Render function type argument names in generated documentation * Fixup, unescape name, before passing to identifier * Fixup
Diffstat (limited to 'core/src/test/kotlin')
-rw-r--r--core/src/test/kotlin/format/HtmlFormatTest.kt4
-rw-r--r--core/src/test/kotlin/format/MarkdownFormatTest.kt4
2 files changed, 8 insertions, 0 deletions
diff --git a/core/src/test/kotlin/format/HtmlFormatTest.kt b/core/src/test/kotlin/format/HtmlFormatTest.kt
index 12df7c44..4b4eff59 100644
--- a/core/src/test/kotlin/format/HtmlFormatTest.kt
+++ b/core/src/test/kotlin/format/HtmlFormatTest.kt
@@ -134,6 +134,10 @@ class HtmlFormatTest {
verifyHtmlNode("linkWithStarProjection", withKotlinRuntime = true)
}
+ @Test fun functionalTypeWithNamedParameters() {
+ verifyHtmlNode("functionalTypeWithNamedParameters")
+ }
+
private fun verifyHtmlNode(fileName: String, withKotlinRuntime: Boolean = false) {
verifyHtmlNodes(fileName, withKotlinRuntime) { model -> model.members.single().members }
}
diff --git a/core/src/test/kotlin/format/MarkdownFormatTest.kt b/core/src/test/kotlin/format/MarkdownFormatTest.kt
index 6e4c44c8..c425e3f6 100644
--- a/core/src/test/kotlin/format/MarkdownFormatTest.kt
+++ b/core/src/test/kotlin/format/MarkdownFormatTest.kt
@@ -227,6 +227,10 @@ class MarkdownFormatTest {
verifyMarkdownNodeByName("qualifiedNameLink", "foo", withKotlinRuntime = true)
}
+ @Test fun functionalTypeWithNamedParameters() {
+ verifyMarkdownNode("functionalTypeWithNamedParameters")
+ }
+
@Test fun typeAliases() {
verifyMarkdownNode("typeAliases")
verifyMarkdownPackage("typeAliases")