diff options
author | Ilya Ryzhenkov <orangy@jetbrains.com> | 2014-07-11 20:32:27 +0400 |
---|---|---|
committer | Ilya Ryzhenkov <orangy@jetbrains.com> | 2014-07-11 20:32:27 +0400 |
commit | eb290376627a04492b8cde48ba608b061d59c8dc (patch) | |
tree | 43852d0b75853a865ca13f1cde7bbc687157dcab /test/src | |
parent | f2f6fd9fa48aaa49e16eaa78b86be89e1a232ad7 (diff) | |
download | dokka-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.kt | 13 |
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()) { |