diff options
Diffstat (limited to 'test/src/ClassTest.kt')
-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()) { |