aboutsummaryrefslogtreecommitdiff
path: root/core/src/test/kotlin
diff options
context:
space:
mode:
authorDmitry Jemerov <yole@jetbrains.com>2016-01-05 17:43:40 +0100
committerDmitry Jemerov <yole@jetbrains.com>2016-01-05 17:43:40 +0100
commit9b9b689d67a20abb52fcde5ed4655d9a5092b8df (patch)
treef0ac5e76533d4ab911f424adbfb0179e66f47c57 /core/src/test/kotlin
parentefd848a7d5f5f241de4696d34a500d76f51b3cbc (diff)
downloaddokka-9b9b689d67a20abb52fcde5ed4655d9a5092b8df.tar.gz
dokka-9b9b689d67a20abb52fcde5ed4655d9a5092b8df.tar.bz2
dokka-9b9b689d67a20abb52fcde5ed4655d9a5092b8df.zip
always include type parameters in the signature of a type
Diffstat (limited to 'core/src/test/kotlin')
-rw-r--r--core/src/test/kotlin/format/MarkdownFormatTest.kt14
1 files changed, 11 insertions, 3 deletions
diff --git a/core/src/test/kotlin/format/MarkdownFormatTest.kt b/core/src/test/kotlin/format/MarkdownFormatTest.kt
index 5ec2b637..81e0cb6b 100644
--- a/core/src/test/kotlin/format/MarkdownFormatTest.kt
+++ b/core/src/test/kotlin/format/MarkdownFormatTest.kt
@@ -215,9 +215,11 @@ public class MarkdownFormatTest {
}
@Test fun inheritedExtensions() {
- verifyOutput("testdata/format/inheritedExtensions.kt", ".md") { model, output ->
- markdownService.appendNodes(tempLocation, output, model.members.single().members.filter { it.name == "Bar" })
- }
+ verifyMarkdownNodeByName("inheritedExtensions", "Bar")
+ }
+
+ @Test fun arrayAverage() {
+ verifyMarkdownNodeByName("arrayAverage", "XArray")
}
private fun verifyMarkdownPackage(fileName: String, withKotlinRuntime: Boolean = false) {
@@ -231,4 +233,10 @@ public class MarkdownFormatTest {
markdownService.appendNodes(tempLocation, output, model.members.single().members)
}
}
+
+ private fun verifyMarkdownNodeByName(fileName: String, name: String) {
+ verifyOutput("testdata/format/$fileName.kt", ".md") { model, output ->
+ markdownService.appendNodes(tempLocation, output, model.members.single().members.filter { it.name == name })
+ }
+ }
}