diff options
author | Dmitry Jemerov <yole@jetbrains.com> | 2015-09-09 15:24:51 +0200 |
---|---|---|
committer | Dmitry Jemerov <yole@jetbrains.com> | 2015-09-09 15:24:51 +0200 |
commit | cdd7c6b4cf76ee798084af893fb75c46b9c8e5a5 (patch) | |
tree | 851a7f5908c6a7a2604f9e363e2a0bfa126831bd /test/src | |
parent | 2c7e6d87d0c1b71081d528d51cc0cde9b1dbb3e7 (diff) | |
download | dokka-cdd7c6b4cf76ee798084af893fb75c46b9c8e5a5.tar.gz dokka-cdd7c6b4cf76ee798084af893fb75c46b9c8e5a5.tar.bz2 dokka-cdd7c6b4cf76ee798084af893fb75c46b9c8e5a5.zip |
don't duplicate 'abstract' and 'sealed' modifiers
Diffstat (limited to 'test/src')
-rw-r--r-- | test/src/model/ClassTest.kt | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/test/src/model/ClassTest.kt b/test/src/model/ClassTest.kt index bcedf49c..8c3adb7f 100644 --- a/test/src/model/ClassTest.kt +++ b/test/src/model/ClassTest.kt @@ -169,6 +169,13 @@ public class ClassTest { } } + @Test fun sealedClass() { + verifyPackageMember("test/data/classes/sealedClass.kt") { cls -> + val modifiers = cls.details(DocumentationNode.Kind.Modifier).map { it.name } + assertEquals(1, modifiers.count { it == "sealed" }) + } + } + Test fun annotatedClassWithAnnotationParameters() { verifyModel("test/data/classes/annotatedClassWithAnnotationParameters.kt") { model -> with(model.members.single().members.single()) { |