aboutsummaryrefslogtreecommitdiff
path: root/test/src/model
diff options
context:
space:
mode:
authorDmitry Jemerov <yole@jetbrains.com>2015-02-13 18:05:16 +0100
committerDmitry Jemerov <yole@jetbrains.com>2015-02-13 18:05:16 +0100
commit95e3e32c181429df73cfbf03958dfe4e30d6001d (patch)
tree2595245a6458305dfc961d1277e377b7b33ca968 /test/src/model
parentce29c52ff50c592b724bb1ef1b06d3625679ebfa (diff)
downloaddokka-95e3e32c181429df73cfbf03958dfe4e30d6001d.tar.gz
dokka-95e3e32c181429df73cfbf03958dfe4e30d6001d.tar.bz2
dokka-95e3e32c181429df73cfbf03958dfe4e30d6001d.zip
distinguish Kotlin inner classes
Diffstat (limited to 'test/src/model')
-rw-r--r--test/src/model/ClassTest.kt9
1 files changed, 9 insertions, 0 deletions
diff --git a/test/src/model/ClassTest.kt b/test/src/model/ClassTest.kt
index 94a0fde0..d607b593 100644
--- a/test/src/model/ClassTest.kt
+++ b/test/src/model/ClassTest.kt
@@ -235,4 +235,13 @@ public class ClassTest {
}
}
}
+
+ Test fun innerClass() {
+ verifyPackageMember("test/data/classes/innerClass.kt") { cls ->
+ val innerClass = cls.members.single { it.name == "D" }
+ val modifiers = innerClass.details(DocumentationNode.Kind.Modifier)
+ assertEquals(3, modifiers.size())
+ assertEquals("inner", modifiers[2].name)
+ }
+ }
}