Skip to content

Commit

Permalink
Add a link test for [CharSequence.endsWith]
Browse files Browse the repository at this point in the history
  • Loading branch information
vmishenev committed May 27, 2024
1 parent 52ff374 commit d809603
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions dokka-subprojects/plugin-base/src/test/kotlin/markdown/LinkTest.kt
Original file line number Diff line number Diff line change
Expand Up @@ -855,6 +855,40 @@ class LinkTest : BaseAbstractTest() {
}
}
}
/**
* [CharSequence.endsWith]
*/
@Test
fun `full link should lead to an extension2`() {
testInline(
"""
|/src/main/kotlin/Testing.kt
|package example
|/**
| * [CharSequence.endsWith]
| */
|fun usage() {}
""".trimMargin(),
configuration
) {
documentablesMergingStage = { module ->
assertEquals(
DRI(
"kotlin.text", null, callable = Callable(
"endsWith", receiver = TypeConstructor(
"kotlin.CharSequence", params = emptyList()
), params = listOf(
TypeConstructor("kotlin.Char", params = emptyList()), TypeConstructor(
"kotlin.Boolean",
params = emptyList()
)
)
)
),
module.getLinkDRIFrom("usage"))
}
}
}

@Test
@OnlyDescriptors("#3555")
Expand Down

0 comments on commit d809603

Please sign in to comment.