diff options
author | Dmitry Jemerov <yole@jetbrains.com> | 2017-02-24 13:15:30 +0100 |
---|---|---|
committer | Dmitry Jemerov <yole@jetbrains.com> | 2017-02-24 13:15:30 +0100 |
commit | a3c7641398de9a3cd594a273538bb9e916139830 (patch) | |
tree | ae5748de0641312f2f935d39eb718a5696393ae5 /core/src/test | |
parent | a962349500918a5e26ae9b5567218986838a1ffb (diff) | |
download | dokka-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.kt | 7 |
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 -> |