diff options
Diffstat (limited to 'test/src/format')
-rw-r--r-- | test/src/format/MarkdownFormatTest.kt | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/test/src/format/MarkdownFormatTest.kt b/test/src/format/MarkdownFormatTest.kt index 7e379cf9..4b207b75 100644 --- a/test/src/format/MarkdownFormatTest.kt +++ b/test/src/format/MarkdownFormatTest.kt @@ -83,13 +83,9 @@ 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])) + verifyOutput("test/data/format/accessor.kt", ".md") { model, output -> + val propertyNode = model.members.single().members.first { it.name == "C" }.members.filter { it.name == "x" } + markdownService.appendNodes(tempLocation, output, propertyNode) } } |