aboutsummaryrefslogtreecommitdiff
path: root/core/src/test/kotlin/model/LinkTest.kt
diff options
context:
space:
mode:
authorDmitry Jemerov <intelliyole@gmail.com>2016-01-12 13:53:18 +0100
committerDmitry Jemerov <intelliyole@gmail.com>2016-01-12 13:53:18 +0100
commitebdb4d43516a744bbc38f1dee2752e649c26f95d (patch)
tree5b285c29c476111cf0eb4baa82f00806ad37dfe6 /core/src/test/kotlin/model/LinkTest.kt
parent628356d63443b11ff2221707c54a397f548d38a4 (diff)
parentfc0f3f7574198851be009dd62c720b8372344c95 (diff)
downloaddokka-ebdb4d43516a744bbc38f1dee2752e649c26f95d.tar.gz
dokka-ebdb4d43516a744bbc38f1dee2752e649c26f95d.tar.bz2
dokka-ebdb4d43516a744bbc38f1dee2752e649c26f95d.zip
Merge pull request #48 from ingokegel/master
@Suppress("NOT_DOCUMENTED"), fix for linking to targets with underscores, gradle plugin improvements
Diffstat (limited to 'core/src/test/kotlin/model/LinkTest.kt')
-rw-r--r--core/src/test/kotlin/model/LinkTest.kt10
1 files changed, 10 insertions, 0 deletions
diff --git a/core/src/test/kotlin/model/LinkTest.kt b/core/src/test/kotlin/model/LinkTest.kt
index 3db1b90f..bcb1007c 100644
--- a/core/src/test/kotlin/model/LinkTest.kt
+++ b/core/src/test/kotlin/model/LinkTest.kt
@@ -25,6 +25,16 @@ public class LinkTest {
}
}
+ @Test fun linkToConstantWithUnderscores() {
+ verifyModel("testdata/links/linkToConstantWithUnderscores.kt") { model ->
+ with(model.members.single().members.single()) {
+ assertEquals("Foo", name)
+ assertEquals(DocumentationNode.Kind.Class, kind)
+ assertEquals("This is link to [MY_CONSTANT_VALUE -> CompanionObjectProperty:MY_CONSTANT_VALUE]", content.summary.toTestString())
+ }
+ }
+ }
+
@Test fun linkToQualifiedMember() {
verifyModel("testdata/links/linkToQualifiedMember.kt") { model ->
with(model.members.single().members.single()) {