diff options
Diffstat (limited to 'test')
-rw-r--r-- | test/src/model/JavaTest.kt | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/test/src/model/JavaTest.kt b/test/src/model/JavaTest.kt index e339f939..62728f45 100644 --- a/test/src/model/JavaTest.kt +++ b/test/src/model/JavaTest.kt @@ -64,9 +64,13 @@ public class JavaTest { Test fun arrayType() { verifyPackageMember("test/data/java/arrayType.java") { cls -> with(cls.members.single()) { - assertEquals("Array<String>", detail(DocumentationNode.Kind.Type).name) + val type = detail(DocumentationNode.Kind.Type) + assertEquals("Array", type.name) + assertEquals("String", type.detail(DocumentationNode.Kind.TypeParameter).name) with(details(DocumentationNode.Kind.Parameter).single()) { - assertEquals("Array<Int>", detail(DocumentationNode.Kind.Type).name) + val type = detail(DocumentationNode.Kind.Type) + assertEquals("Array", type.name) + assertEquals("Int", type.detail(DocumentationNode.Kind.TypeParameter).name) } } } |