[K/N][Tests] Adjust moved codegen tests to new infra

^KT-61259
This commit is contained in:
Vladimir Sukharev
2023-12-14 20:14:47 +01:00
committed by Space Team
parent 71a834b778
commit 73032213f0
295 changed files with 1362 additions and 1145 deletions
+3 -2
View File
@@ -3,7 +3,6 @@
* that can be found in the LICENSE file.
*/
@file:OptIn(FreezingIsDeprecated::class, kotlin.experimental.ExperimentalNativeApi::class)
package codegen.enum.isFrozen
import kotlin.test.*
import kotlin.native.concurrent.*
@@ -13,7 +12,7 @@ enum class Zzz(val zzz: String, var value: Int = 0) {
Z2("z2")
}
@Test fun runTest() {
fun box(): String {
if (Platform.memoryModel == MemoryModel.STRICT) {
assertTrue(Zzz.Z1.isFrozen)
assertFailsWith<InvalidMutabilityException> {
@@ -25,4 +24,6 @@ enum class Zzz(val zzz: String, var value: Int = 0) {
Zzz.Z1.value = 42
assertEquals(42, Zzz.Z1.value)
}
return "OK"
}