From 378be37160fde0041cf88f3dfa53e9db3ec3e219 Mon Sep 17 00:00:00 2001 From: Simon Ogorodnik Date: Tue, 6 Dec 2016 16:25:30 +0300 Subject: 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 --- core/src/test/kotlin/format/HtmlFormatTest.kt | 4 ++++ core/src/test/kotlin/format/MarkdownFormatTest.kt | 4 ++++ 2 files changed, 8 insertions(+) (limited to 'core/src/test/kotlin') 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") -- cgit