Skip to content

Commit

Permalink
Edit some tests to check the stability of the order (#3943)
Browse files Browse the repository at this point in the history
  • Loading branch information
vmishenev authored Dec 2, 2024
1 parent ae68eee commit 9577dc7
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,7 @@ class SampleMixedJvmAnalysisTest {
val secondClasslike = pckg.classlikes[1]
assertEquals("MyJavaFileInJava", secondClasslike.name)

// TODO #3250 address unstable order
val functions = pckg.functions.sortedBy { it.name }
val functions = pckg.functions
val firstFunction = functions[0]
assertEquals("bar", firstFunction.name)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -776,8 +776,7 @@ class LinkTest : BaseAbstractTest() {
}
}
@Test
@OnlyDescriptors("due to #3250 a result DRI is unstable")
fun `K1 - link should be stable for overloads in different files`() {
fun `link should be stable for overloads in different files`() {
testInline(
"""
|/src/main/kotlin/Testing.kt
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,11 @@ import org.jetbrains.dokka.javadoc.pages.AllClassesPage
import org.jetbrains.dokka.javadoc.pages.LinkJavadocListEntry
import org.jetbrains.dokka.links.DRI
import org.jetbrains.dokka.pages.ContentKind
import org.junit.jupiter.api.Tag
import kotlin.test.Test
import kotlin.test.assertEquals

internal class JavadocAllClassesTemplateMapTest : AbstractJavadocTemplateMapTest() {
@Test
@Tag("onlyDescriptors") // https://github.com/Kotlin/dokka/issues/3250
fun `two classes from different packages`() {
dualTestTemplateMapInline(
"""
Expand Down

0 comments on commit 9577dc7

Please sign in to comment.