aboutsummaryrefslogtreecommitdiff
path: root/plugins/base/src/test
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/base/src/test')
-rw-r--r--plugins/base/src/test/kotlin/expectActuals/ExpectActualsTest.kt16
-rw-r--r--plugins/base/src/test/kotlin/pageMerger/PageNodeMergerTest.kt8
2 files changed, 12 insertions, 12 deletions
diff --git a/plugins/base/src/test/kotlin/expectActuals/ExpectActualsTest.kt b/plugins/base/src/test/kotlin/expectActuals/ExpectActualsTest.kt
index c1d2c5a9..4bb68a6a 100644
--- a/plugins/base/src/test/kotlin/expectActuals/ExpectActualsTest.kt
+++ b/plugins/base/src/test/kotlin/expectActuals/ExpectActualsTest.kt
@@ -143,27 +143,27 @@ class ExpectActualsTest : AbstractCoreTest() {
) {
pagesTransformationStage = {
val allChildren = it.withDescendants().filterIsInstance<ClasslikePageNode>().toList()
- val commonJ = allChildren.filter { it.name == "A(jvm, js)" }
- val commonN1 = allChildren.filter { it.name == "A(mingwX64, linuxX64)" }
- val commonN2 = allChildren.filter { it.name == "A(iosX64, iosArm64)" }
+ val commonJ = allChildren.filter { it.name == "[jvm, js]A" }
+ val commonN1 = allChildren.filter { it.name == "[mingwX64, linuxX64]A" }
+ val commonN2 = allChildren.filter { it.name == "[iosX64, iosArm64]A" }
val noClass = allChildren.filter { it.name == "A" }
- assertTrue(commonJ.size == 1) { "There can be only one A(jvm, js) page" }
+ assertTrue(commonJ.size == 1) { "There can be only one [jvm, js]A page" }
assertTrue(
commonJ.first().documentable?.sourceSets?.map { it.displayName }
?.containsAll(listOf("commonJ", "js", "jvm")) ?: false
) { "A(jvm, js)should have commonJ, js, jvm sources" }
- assertTrue(commonN1.size == 1) { "There can be only one A(mingwX64, linuxX64) page" }
+ assertTrue(commonN1.size == 1) { "There can be only one [mingwX64, linuxX64]A page" }
assertTrue(
commonN1.first().documentable?.sourceSets?.map { it.displayName }
?.containsAll(listOf("commonN1", "linuxX64", "mingwX64")) ?: false
- ) { "A(mingwX64, linuxX64) should have commonN1, linuxX64, mingwX64 sources" }
+ ) { "[mingwX64, linuxX64]A should have commonN1, linuxX64, mingwX64 sources" }
- assertTrue(commonN2.size == 1) { "There can be only one A(iosX64, iosArm64) page" }
+ assertTrue(commonN2.size == 1) { "There can be only one [iosX64, iosArm64]A page" }
assertTrue(
commonN2.first().documentable?.sourceSets?.map { it.displayName }
?.containsAll(listOf("commonN2", "iosArm64", "iosX64")) ?: false
- ) { "A(iosX64, iosArm64) should have commonN2, iosArm64, iosX64 sources" }
+ ) { "[iosX64, iosArm64]A should have commonN2, iosArm64, iosX64 sources" }
assertTrue(noClass.isEmpty()) { "There can't be any A page" }
}
diff --git a/plugins/base/src/test/kotlin/pageMerger/PageNodeMergerTest.kt b/plugins/base/src/test/kotlin/pageMerger/PageNodeMergerTest.kt
index 49fe8d5a..a8a9cb69 100644
--- a/plugins/base/src/test/kotlin/pageMerger/PageNodeMergerTest.kt
+++ b/plugins/base/src/test/kotlin/pageMerger/PageNodeMergerTest.kt
@@ -174,14 +174,14 @@ class PageNodeMergerTest : AbstractCoreTest() {
pagesTransformationStage = {
println(it)
val allChildren = it.childrenRec().filterIsInstance<ClasslikePageNode>()
- val jvmClass = allChildren.filter { it.name == "DoNotMerge(jvm)" }
- val jsClass = allChildren.filter { it.name == "DoNotMerge(js)" }
+ val jvmClass = allChildren.filter { it.name == "[jvm]DoNotMerge" }
+ val jsClass = allChildren.filter { it.name == "[js]DoNotMerge" }
val noClass = allChildren.filter { it.name == "DoNotMerge" }
assertTrue(jvmClass.size == 1) { "There can be only one DoNotMerge(jvm) page" }
- assertTrue(jvmClass.first().documentable?.sourceSets?.single()?.analysisPlatform?.key == "jvm") { "DoNotMerge(jvm) should have only jvm sources" }
+ assertTrue(jvmClass.first().documentable?.sourceSets?.single()?.analysisPlatform?.key == "jvm") { "[jvm]DoNotMerge should have only jvm sources" }
assertTrue(jsClass.size == 1) { "There can be only one DoNotMerge(js) page" }
- assertTrue(jsClass.first().documentable?.sourceSets?.single()?.analysisPlatform?.key == "js") { "DoNotMerge(js) should have only js sources" }
+ assertTrue(jsClass.first().documentable?.sourceSets?.single()?.analysisPlatform?.key == "js") { "[js]DoNotMerge should have only js sources" }
assertTrue(noClass.isEmpty()) { "There can't be any DoNotMerge page" }
}