aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorDmitry Jemerov <yole@jetbrains.com>2015-01-13 16:38:41 +0100
committerDmitry Jemerov <yole@jetbrains.com>2015-01-13 16:38:41 +0100
commit2e277ba086f727c755e584f93280cb4d00e7444e (patch)
treedd229d28ae73a3cabe74fdd42712fd08294feee6 /test
parent891cc8569d535c3ac5ade23d7fd56dbca619e05b (diff)
downloaddokka-2e277ba086f727c755e584f93280cb4d00e7444e.tar.gz
dokka-2e277ba086f727c755e584f93280cb4d00e7444e.tar.bz2
dokka-2e277ba086f727c755e584f93280cb4d00e7444e.zip
correcty represent vararg parameters
Diffstat (limited to 'test')
-rw-r--r--test/data/format/varargsFunction.kt1
-rw-r--r--test/data/format/varargsFunction.md12
-rw-r--r--test/src/format/MarkdownFormatTest.kt6
3 files changed, 19 insertions, 0 deletions
diff --git a/test/data/format/varargsFunction.kt b/test/data/format/varargsFunction.kt
new file mode 100644
index 00000000..deea127b
--- /dev/null
+++ b/test/data/format/varargsFunction.kt
@@ -0,0 +1 @@
+fun f(vararg s: String) {}
diff --git a/test/data/format/varargsFunction.md b/test/data/format/varargsFunction.md
new file mode 100644
index 00000000..c86132bc
--- /dev/null
+++ b/test/data/format/varargsFunction.md
@@ -0,0 +1,12 @@
+[test](out.md) / [](out.md) / [f](out.md)
+
+
+# f
+
+
+```
+fun f(vararg s: String): Unit
+```
+
+
+
diff --git a/test/src/format/MarkdownFormatTest.kt b/test/src/format/MarkdownFormatTest.kt
index a5a62e13..f7fc6da0 100644
--- a/test/src/format/MarkdownFormatTest.kt
+++ b/test/src/format/MarkdownFormatTest.kt
@@ -55,4 +55,10 @@ public class MarkdownFormatTest {
enumClassNode.members.filter { it.name == "LOCAL_CONTINUE_AND_BREAK" })
}
}
+
+ Test fun varargsFunction() {
+ verifyOutput("test/data/format/varargsFunction.kt", ".md") { model, output ->
+ markdownService.appendNodes(tempLocation, output, model.members.single().members)
+ }
+ }
}