From b511259a37aa9feee06a3ca92b7967552aa34104 Mon Sep 17 00:00:00 2001 From: Ilya Ryzhenkov Date: Fri, 11 Jul 2014 22:09:41 +0400 Subject: Support type parameters for functions and classes. --- test/src/model/ClassTest.kt | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) (limited to 'test/src/model/ClassTest.kt') diff --git a/test/src/model/ClassTest.kt b/test/src/model/ClassTest.kt index 708a1798..82d24f16 100644 --- a/test/src/model/ClassTest.kt +++ b/test/src/model/ClassTest.kt @@ -18,6 +18,28 @@ public class ClassTest { } } + Test fun genericClass() { + verifyModel("test/data/classes/genericClass.kt") { model -> + with(model.nodes.single().members.single()) { + assertEquals(DocumentationNodeKind.Class, kind) + assertEquals("Klass", name) + assertEquals("", doc) + + with(details.single()) { + assertEquals("T", name) + assertEquals(DocumentationNodeKind.TypeParameter, kind) + assertEquals("", doc) + assertTrue(details.none()) + assertTrue(members.none()) + assertTrue(links.none()) + } + + assertEquals("", members.single().name) + assertTrue(links.none()) + } + } + } + Test fun emptyObject() { verifyModel("test/data/classes/emptyObject.kt") { model -> with(model.nodes.single().members.single()) { -- cgit