aboutsummaryrefslogtreecommitdiff
path: root/test/src/model
diff options
context:
space:
mode:
authorDmitry Jemerov <yole@jetbrains.com>2015-02-16 12:37:27 +0100
committerDmitry Jemerov <yole@jetbrains.com>2015-02-16 12:37:27 +0100
commit555f9cf07ada20ffc947dd57ebb3cdcb6a020ab4 (patch)
treee5a2b1b9a1e76f0b23d27e057b545f411eeead70 /test/src/model
parent4a458963ff15d113d7833cebba55065a910b135c (diff)
downloaddokka-555f9cf07ada20ffc947dd57ebb3cdcb6a020ab4.tar.gz
dokka-555f9cf07ada20ffc947dd57ebb3cdcb6a020ab4.tar.bz2
dokka-555f9cf07ada20ffc947dd57ebb3cdcb6a020ab4.zip
represent array types as type with type parameter
Diffstat (limited to 'test/src/model')
-rw-r--r--test/src/model/JavaTest.kt8
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)
}
}
}