aboutsummaryrefslogtreecommitdiff
path: root/test/src/model
diff options
context:
space:
mode:
authorDmitry Jemerov <yole@jetbrains.com>2015-01-14 20:30:54 +0100
committerDmitry Jemerov <yole@jetbrains.com>2015-01-14 20:30:54 +0100
commit807451f9ad9664e7b26cc50c4f08a2a9bf3be538 (patch)
tree08f6e458ae15aa5796a53d4629b2ff5c16f783c9 /test/src/model
parent77c1f53cab3c2b143a3dafaf6c7bef49df5bcdb9 (diff)
parentf36d9b0e4f336de7e35dcfa33934ab287b76d964 (diff)
downloaddokka-807451f9ad9664e7b26cc50c4f08a2a9bf3be538.tar.gz
dokka-807451f9ad9664e7b26cc50c4f08a2a9bf3be538.tar.bz2
dokka-807451f9ad9664e7b26cc50c4f08a2a9bf3be538.zip
Merge branch 'defaut-param-values'
Conflicts: src/Kotlin/DocumentationBuilder.kt test/src/format/MarkdownFormatTest.kt
Diffstat (limited to 'test/src/model')
-rw-r--r--test/src/model/FunctionTest.kt14
1 files changed, 14 insertions, 0 deletions
diff --git a/test/src/model/FunctionTest.kt b/test/src/model/FunctionTest.kt
index 299f33a8..c648cb55 100644
--- a/test/src/model/FunctionTest.kt
+++ b/test/src/model/FunctionTest.kt
@@ -194,4 +194,18 @@ Documentation""", content.description.toTestString())
}
}
}
+
+ Test fun functionWithDefaultParameter() {
+ verifyModel("test/data/functions/functionWithDefaultParameter.kt") { model ->
+ with(model.members.single().members.single()) {
+ with(details.elementAt(2)) {
+ val value = details(DocumentationNode.Kind.Value)
+ assertEquals(1, value.count())
+ with(value[0]) {
+ assertEquals("\"\"", name)
+ }
+ }
+ }
+ }
+ }
}