aboutsummaryrefslogtreecommitdiff
path: root/core/src/test/kotlin/model/LinkTest.kt
diff options
context:
space:
mode:
authorDmitry Jemerov <yole@jetbrains.com>2016-01-12 13:53:52 +0100
committerDmitry Jemerov <yole@jetbrains.com>2016-01-12 13:53:52 +0100
commit164575ebcdc5fda56117cdc9d5c39be3f137c88b (patch)
tree113bbf7b0f5d83d35e0f715d20e0831ae3a36637 /core/src/test/kotlin/model/LinkTest.kt
parentda2cf094df5e8bc0470823e7154be84dcd578cd2 (diff)
parentebdb4d43516a744bbc38f1dee2752e649c26f95d (diff)
downloaddokka-164575ebcdc5fda56117cdc9d5c39be3f137c88b.tar.gz
dokka-164575ebcdc5fda56117cdc9d5c39be3f137c88b.tar.bz2
dokka-164575ebcdc5fda56117cdc9d5c39be3f137c88b.zip
Merge remote-tracking branch 'origin/master'
# Conflicts: # dokka-gradle-plugin/src/main/kotlin/main.kt
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()) {