diff options
author | Dmitry Jemerov <yole@jetbrains.com> | 2016-04-27 20:44:36 +0200 |
---|---|---|
committer | Dmitry Jemerov <yole@jetbrains.com> | 2016-04-27 20:44:36 +0200 |
commit | e33ea05d10a35adfe6835dce291080d9843e6b71 (patch) | |
tree | 8a831b0c26d94b86599f41e844f7b3ec57236611 /core/src/test/kotlin | |
parent | 6ce0bdf71e76a14e6aedd44cb3987185816fc642 (diff) | |
download | dokka-e33ea05d10a35adfe6835dce291080d9843e6b71.tar.gz dokka-e33ea05d10a35adfe6835dce291080d9843e6b71.tar.bz2 dokka-e33ea05d10a35adfe6835dce291080d9843e6b71.zip |
Use FQ name instead of simple name to identify array classes. Resolves #68
Diffstat (limited to 'core/src/test/kotlin')
-rw-r--r-- | core/src/test/kotlin/javadoc/JavadocTest.kt | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/core/src/test/kotlin/javadoc/JavadocTest.kt b/core/src/test/kotlin/javadoc/JavadocTest.kt index b848aaa1..54654a2c 100644 --- a/core/src/test/kotlin/javadoc/JavadocTest.kt +++ b/core/src/test/kotlin/javadoc/JavadocTest.kt @@ -47,4 +47,16 @@ class JavadocTest { assertEquals(classDoc, member!!.containingClass()) } } + + @Test fun testByteArray() { + verifyModel("testdata/javadoc/bytearr.kt", format = "javadoc", withKotlinRuntime = true) { model -> + val doc = ModuleNodeAdapter(model, StandardReporter(DokkaConsoleLogger), "") + + val classDoc = doc.classNamed("foo.ByteArray")!! + assertNotNull(classDoc.asClassDoc()) + + val member = classDoc.methods().find { it.name() == "foo" }!! + assertEquals("[]", member.returnType().dimension()) + } + } } |