Do not reference java.util in tests that run on JS backend.

This commit is contained in:
Ilya Gorbunov
2016-09-30 22:15:34 +03:00
parent 491ca582b3
commit 38840bb529
151 changed files with 76 additions and 214 deletions
+3 -3
View File
@@ -1,17 +1,17 @@
// TODO: muted automatically, investigate should it be ran for JS or not
// IGNORE_BACKEND: JS
import java.util.Arrays.equals
// WITH_RUNTIME
fun box(): String {
val s = arrayOf("live", "long")
val t: Array<String> = s.clone()
if (!equals(s, t)) return "Fail string"
if (!(s contentEquals t)) return "Fail string"
if (s === t) return "Fail string identity"
val ss = arrayOf(s, s)
val tt: Array<Array<String>> = ss.clone()
if (!equals(ss, tt)) return "Fail string[]"
if (!(ss contentEquals tt)) return "Fail string[]"
if (ss === tt) return "Fail string[] identity"
return "OK"