aboutsummaryrefslogtreecommitdiff
path: root/core/src/test
diff options
context:
space:
mode:
authorDmitry Jemerov <yole@jetbrains.com>2017-02-24 13:15:30 +0100
committerDmitry Jemerov <yole@jetbrains.com>2017-02-24 13:15:30 +0100
commita3c7641398de9a3cd594a273538bb9e916139830 (patch)
treeae5748de0641312f2f935d39eb718a5696393ae5 /core/src/test
parenta962349500918a5e26ae9b5567218986838a1ffb (diff)
downloaddokka-a3c7641398de9a3cd594a273538bb9e916139830.tar.gz
dokka-a3c7641398de9a3cd594a273538bb9e916139830.tar.bz2
dokka-a3c7641398de9a3cd594a273538bb9e916139830.zip
Omit platform of members when it's the same as the platform of the defining class
Diffstat (limited to 'core/src/test')
-rw-r--r--core/src/test/kotlin/format/MarkdownFormatTest.kt7
1 files changed, 7 insertions, 0 deletions
diff --git a/core/src/test/kotlin/format/MarkdownFormatTest.kt b/core/src/test/kotlin/format/MarkdownFormatTest.kt
index 7c1cc8b3..fb202b81 100644
--- a/core/src/test/kotlin/format/MarkdownFormatTest.kt
+++ b/core/src/test/kotlin/format/MarkdownFormatTest.kt
@@ -265,6 +265,13 @@ class MarkdownFormatTest {
}
}
+ @Test fun multiplePlatformsOmitRedundant() {
+ val module = buildMultiplePlatforms("multiplatformOmitRedundant")
+ verifyModelOutput(module, ".md", "testdata/format/multiplatformOmitRedundant/foo.kt") { model, output ->
+ markdownService.createOutputBuilder(output, tempLocation).appendNodes(model.members.single().members)
+ }
+ }
+
@Test fun multiplePlatformsImplied() {
val module = buildMultiplePlatforms("multiplatformImplied")
verifyModelOutput(module, ".md", "testdata/format/multiplatformImplied/foo.kt") { model, output ->