diff options
Diffstat (limited to 'test')
-rw-r--r-- | test/data/format/varargsFunction.kt | 1 | ||||
-rw-r--r-- | test/data/format/varargsFunction.md | 12 | ||||
-rw-r--r-- | test/src/format/MarkdownFormatTest.kt | 6 |
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) + } + } } |