[PL][tests] Keep PL test data under "testData/klib/" dir

This commit is contained in:
Dmitriy Dolovov
2023-08-15 14:38:02 +02:00
committed by Space Team
parent 9e3afe7a1f
commit 5c3e63e19a
186 changed files with 156 additions and 156 deletions
@@ -0,0 +1,3 @@
enum class E {
UNCHANGED1, /*ADDED,*/ UNCHANGED2
}
@@ -0,0 +1,3 @@
enum class E {
UNCHANGED1, ADDED, UNCHANGED2
}
@@ -0,0 +1,6 @@
STEP 0:
dependencies: stdlib
STEP 1:
dependencies: stdlib
modifications:
U : l1.kt.1 -> l1.kt
@@ -0,0 +1,4 @@
fun compute(e: E): String = when (e) {
E.UNCHANGED1 -> "OK"
E.UNCHANGED2 -> "OK"
}
@@ -0,0 +1,2 @@
STEP 0:
dependencies: stdlib, lib1
@@ -0,0 +1,7 @@
import abitestutils.abiTest
fun box() = abiTest {
expectSuccess { compute(E.UNCHANGED2) }
expectFailure(noWhenBranch()) { compute(E.ADDED) }
expectSuccess { compute(E.UNCHANGED1) }
}
@@ -0,0 +1,2 @@
STEP 1:
dependencies: stdlib, lib1, lib2
@@ -0,0 +1,7 @@
MODULES: lib1, lib2, main
STEP 0:
libs: lib1, lib2
STEP 1:
libs: lib1, main