aboutsummaryrefslogtreecommitdiff
path: root/test/src/format
diff options
context:
space:
mode:
authorDmitry Jemerov <yole@jetbrains.com>2015-01-14 20:02:02 +0100
committerDmitry Jemerov <yole@jetbrains.com>2015-01-14 20:02:02 +0100
commit03d942bb95cf1064488ba2c14d9455c19f9c922e (patch)
tree74d1247a4bc236e5eac27e3462d85ad772ee2877 /test/src/format
parent60e610ebdd86663bedf113d2235ac3c8364171d0 (diff)
downloaddokka-03d942bb95cf1064488ba2c14d9455c19f9c922e.tar.gz
dokka-03d942bb95cf1064488ba2c14d9455c19f9c922e.tar.bz2
dokka-03d942bb95cf1064488ba2c14d9455c19f9c922e.zip
show signatures for accessors
Diffstat (limited to 'test/src/format')
-rw-r--r--test/src/format/MarkdownFormatTest.kt11
1 files changed, 11 insertions, 0 deletions
diff --git a/test/src/format/MarkdownFormatTest.kt b/test/src/format/MarkdownFormatTest.kt
index 580acd7c..180aceae 100644
--- a/test/src/format/MarkdownFormatTest.kt
+++ b/test/src/format/MarkdownFormatTest.kt
@@ -69,4 +69,15 @@ public class MarkdownFormatTest {
}
}
+
+ Test fun accessor() {
+ verifyOutput("test/data/format/accessor.kt", ".get.md") { model, output ->
+ val propertyNode = model.members.single().members.first { it.name == "C" }.members.first { it.name == "x" }
+ markdownService.appendNodes(tempLocation, output, listOf(propertyNode.members[0]))
+ }
+ verifyOutput("test/data/format/accessor.kt", ".set.md") { model, output ->
+ val propertyNode = model.members.single().members.first { it.name == "C" }.members.first { it.name == "x" }
+ markdownService.appendNodes(tempLocation, output, listOf(propertyNode.members[1]))
+ }
+ }
}