[JS IR] Fix test to make them able to run with JS

This commit is contained in:
Roman Artemev
2019-12-05 21:37:23 +03:00
committed by romanart
parent b5af28b28d
commit 540b3cfec3
4 changed files with 5 additions and 16 deletions

View File

@@ -1,14 +1,12 @@
// IGNORE_BACKEND_FIR: JVM_IR
// IGNORE_BACKEND: JS_IR
// TODO: muted automatically, investigate should it be ran for JS or not
// IGNORE_BACKEND: JS, NATIVE
// IGNORE_BACKEND: NATIVE
// WITH_RUNTIME
import kotlin.test.assertEquals
fun foo(x : String) : String {
assert("abz]".hashCode() == "aby|".hashCode())
assertEquals("abz]".hashCode(), "aby|".hashCode())
when (x) {
"abz]", "cde" -> return "abz_cde"