[Test] Convert IGNORE: NATIVE directives in box tests from T to W and boxInline
^KT-59057 Merge-request: KT-MR-10752 Merged-by: Vladimir Sukharev <Vladimir.Sukharev@jetbrains.com>
This commit is contained in:
committed by
Space Team
parent
64158a8a2f
commit
f3fcaa69eb
@@ -1,9 +1,5 @@
|
||||
// IGNORE_BACKEND: WASM
|
||||
// WASM_MUTE_REASON: IGNORED_IN_JS
|
||||
// IGNORE_BACKEND: JS_IR
|
||||
// IGNORE_BACKEND: JS_IR_ES6
|
||||
// TODO: muted automatically, investigate should it be ran for JS or not
|
||||
// IGNORE_BACKEND: JS, NATIVE
|
||||
// TARGET_BACKEND: JVM
|
||||
// TARGET_BACKEND: JVM_IR
|
||||
|
||||
package test
|
||||
|
||||
|
||||
@@ -1,9 +1,5 @@
|
||||
// IGNORE_BACKEND: WASM
|
||||
// WASM_MUTE_REASON: IGNORED_IN_JS
|
||||
// IGNORE_BACKEND: JS_IR
|
||||
// IGNORE_BACKEND: JS_IR_ES6
|
||||
// TODO: muted automatically, investigate should it be ran for JS or not
|
||||
// IGNORE_BACKEND: JS, NATIVE
|
||||
// TARGET_BACKEND: JVM
|
||||
// TARGET_BACKEND: JVM_IR
|
||||
|
||||
// WITH_STDLIB
|
||||
|
||||
|
||||
@@ -0,0 +1,23 @@
|
||||
fun foo1(x: Int): Boolean {
|
||||
when(x) {
|
||||
2 + 2 -> return true
|
||||
else -> return false
|
||||
}
|
||||
}
|
||||
|
||||
fun foo2(x: Int): Boolean {
|
||||
when(x) {
|
||||
Int.MAX_VALUE -> return true
|
||||
else -> return false
|
||||
}
|
||||
}
|
||||
|
||||
fun box(): String {
|
||||
if(!foo1(4)) return "FAIL: foo1(4) must be true"
|
||||
if(foo1(1)) return "FAIL: foo1(1) must be false"
|
||||
|
||||
if(!foo2(Int.MAX_VALUE)) return "FAIL: foo2(Int.MAX_VALUE) must be true"
|
||||
if(foo2(1)) return "FAIL: foo2(1) must be false"
|
||||
|
||||
return "OK"
|
||||
}
|
||||
Reference in New Issue
Block a user