[K/N][Tests] Adjust moved codegen tests to new infra
^KT-61259
This commit is contained in:
committed by
Space Team
parent
71a834b778
commit
73032213f0
+3
-2
@@ -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"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user