Skip to content

Commit 668e1e2

Browse files
committed
Fix the test K2 full link should lead to an extension with type params
1 parent dad2f30 commit 668e1e2

File tree

1 file changed

+10
-6
lines changed
  • dokka-subprojects/plugin-base/src/test/kotlin/markdown

1 file changed

+10
-6
lines changed

dokka-subprojects/plugin-base/src/test/kotlin/markdown/LinkTest.kt

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -930,11 +930,11 @@ class LinkTest : BaseAbstractTest() {
930930
|interface MyListWithNumber : List<Number>
931931
|
932932
|/**
933-
| * 1 [List.foo] is resolved
934-
| * 2 [MutableList.foo] is unresolved
935-
| * 3 [MyListWithT.foo] is unresolved
936-
| * 4 [MyListWithTNumberBound.foo] is unresolved in K2
937-
| * 5 [MyListWithNumber.foo] is unresolved in K2
933+
| * 1 [List.foo]
934+
| * 2 [MutableList.foo] is resolved only in K2, but unresolved in K1
935+
| * 3 [MyListWithT.foo] is resolved only in K2, but unresolved in K1
936+
| * 4 [MyListWithTNumberBound.foo]
937+
| * 5 [MyListWithNumber.foo]
938938
| */
939939
|fun usage() {}
940940
""".trimMargin(),
@@ -952,7 +952,11 @@ class LinkTest : BaseAbstractTest() {
952952
)
953953
assertEquals(
954954
listOf(
955-
"List.foo" to fooDRI
955+
"List.foo" to fooDRI,
956+
"MutableList.foo" to fooDRI,
957+
"MyListWithT.foo" to fooDRI,
958+
"MyListWithTNumberBound.foo" to fooDRI,
959+
"MyListWithNumber.foo" to fooDRI,
956960
), module.getAllLinkDRIFrom("usage")
957961
)
958962
}

0 commit comments

Comments
 (0)