Ignore some 'when' subject variable tests in JS_IR be

This commit is contained in:
Dmitry Petrov
2018-06-19 18:00:50 +03:00
parent a4b5d74ae3
commit c312fddb45
10 changed files with 11 additions and 9 deletions
@@ -1,6 +1,6 @@
// !LANGUAGE: +VariableDeclarationInWhenSubject
// WITH_RUNTIME
// IGNORE_BACKEND: JS
// IGNORE_BACKEND: JS, JS_IR
fun dense(x: Int): Int {
return when (val xx = x) {
@@ -1,5 +1,5 @@
// !LANGUAGE: +VariableDeclarationInWhenSubject
// IGNORE_BACKEND: JS
// IGNORE_BACKEND: JS, JS_IR
val dz = -0.0
val fz = -0.0f
@@ -1,5 +1,5 @@
// !LANGUAGE: +VariableDeclarationInWhenSubject +ProperIeee754Comparisons
// IGNORE_BACKEND: JS
// IGNORE_BACKEND: JS, JS_IR
val az: Any = -0.0
val afz: Any = -0.0f
@@ -1,4 +1,5 @@
// !LANGUAGE: +VariableDeclarationInWhenSubject
// IGNORE_BACKEND: JS_IR
val x = 1
@@ -1,6 +1,6 @@
// !LANGUAGE: +VariableDeclarationInWhenSubject
// WITH_RUNTIME
// IGNORE_BACKEND: JS
// IGNORE_BACKEND: JS, JS_IR
fun sparse(x: Int): Int {
return when (val xx = (x % 4) * 100) {
@@ -1,5 +1,5 @@
// !LANGUAGE: +VariableDeclarationInWhenSubject
// IGNORE_BACKEND: JS
// IGNORE_BACKEND: JS, JS_IR
var effectCount = 0
@@ -1,6 +1,6 @@
// !LANGUAGE: +VariableDeclarationInWhenSubject
// WITH_RUNTIME
// IGNORE_BACKEND: JS
// IGNORE_BACKEND: JS, JS_IR
import kotlin.test.assertEquals
@@ -1,6 +1,6 @@
// !LANGUAGE: +VariableDeclarationInWhenSubject
// WITH_RUNTIME
// IGNORE_BACKEND: JS
// IGNORE_BACKEND: JS, JS_IR
import kotlin.test.assertEquals
@@ -1,6 +1,6 @@
// !LANGUAGE: +VariableDeclarationInWhenSubject
// WITH_RUNTIME
// IGNORE_BACKEND: JS
// IGNORE_BACKEND: JS, JS_IR
import kotlin.test.assertEquals