Just refactor tests that require further investigation

This commit is contained in:
Ilya Gorbunov
2016-11-17 02:14:52 +03:00
parent 62fe89b536
commit 49756a897e
7 changed files with 11 additions and 21 deletions
+4 -5
View File
@@ -1,15 +1,14 @@
// TODO: muted automatically, investigate should it be ran for JS or not
// IGNORE_BACKEND: JS
// missing isArrayOf on JS
// WITH_RUNTIME
import java.util.Arrays
fun box(): String {
val array = Arrays.asList(2, 3, 9).toTypedArray()
if (!array.isArrayOf<Int>()) return array.javaClass.toString()
val array = listOf(2, 3, 9).toTypedArray()
if (!array.isArrayOf<Int>()) return "fail: is not Array<Int>"
val str = Arrays.toString(array)
val str = array.contentToString()
if (str != "[2, 3, 9]") return str
return "OK"