Skip to content

Commit

Permalink
Make verbose test
Browse files Browse the repository at this point in the history
  • Loading branch information
vmishenev committed May 25, 2022
1 parent 963d31f commit 0ada8fd
Showing 1 changed file with 11 additions and 7 deletions.
Expand Up @@ -326,7 +326,16 @@ class MergeImplicitExpectActualDeclarationsTest : BaseAbstractTest() {
cleanupOutput = false
) {
preMergeDocumentablesTransformationStage = {
it.forEach { println(it) }

val class1 =
(it[0].dfs { it.dri.classNames == "classA" } as? DClass).assertNotNull("classA in first module")
val class2 =
(it[1].dfs { it.dri.classNames == "classA" } as? DClass).assertNotNull("classA in second module")

assertEquals(
2, it.size
)
assert(class1.expectPresentInSet != null || class2.expectPresentInSet != null)
}
pagesTransformationStage = { root ->
val classPage = root.dfs { it.name == "classA" } as? ClasslikePageNode
Expand All @@ -346,12 +355,7 @@ class MergeImplicitExpectActualDeclarationsTest : BaseAbstractTest() {
assertEquals(
2,
platformHinted?.sourceSets?.size,
"Incorrect number of source sets ${root.asPrintableTree {
append(
(it as? WithDocumentables)?.documentables?.joinToString().orEmpty()
)
}
}."
"Incorrect number of source sets"
)
}
}
Expand Down

0 comments on commit 0ada8fd

Please sign in to comment.