aboutsummaryrefslogtreecommitdiff
path: root/test/src
diff options
context:
space:
mode:
authorIlya Ryzhenkov <orangy@jetbrains.com>2014-07-11 20:32:27 +0400
committerIlya Ryzhenkov <orangy@jetbrains.com>2014-07-11 20:32:27 +0400
commiteb290376627a04492b8cde48ba608b061d59c8dc (patch)
tree43852d0b75853a865ca13f1cde7bbc687157dcab /test/src
parentf2f6fd9fa48aaa49e16eaa78b86be89e1a232ad7 (diff)
downloaddokka-eb290376627a04492b8cde48ba608b061d59c8dc.tar.gz
dokka-eb290376627a04492b8cde48ba608b061d59c8dc.tar.bz2
dokka-eb290376627a04492b8cde48ba608b061d59c8dc.zip
Add support for objects.
Diffstat (limited to 'test/src')
-rw-r--r--test/src/ClassTest.kt13
1 files changed, 13 insertions, 0 deletions
diff --git a/test/src/ClassTest.kt b/test/src/ClassTest.kt
index 328cc358..692a496d 100644
--- a/test/src/ClassTest.kt
+++ b/test/src/ClassTest.kt
@@ -18,6 +18,19 @@ public class ClassTest {
}
}
+ Test fun emptyObject() {
+ verifyModel("test/data/classes/emptyObject.kt") { model ->
+ with(model.nodes.single().members.single()) {
+ assertEquals(DocumentationNodeKind.Object, kind)
+ assertEquals("Obj", name)
+ assertEquals("", doc)
+ assertTrue(details.none())
+ assertTrue(members.none())
+ assertTrue(links.none())
+ }
+ }
+ }
+
Test fun classWithConstructor() {
verifyModel("test/data/classes/classWithConstructor.kt") { model ->
with (model.nodes.single().members.single()) {