Ignored/fixed some tests for Kotlin/Native

This commit is contained in:
Igor Chevdar
2017-06-21 11:56:22 +03:00
committed by jetbrains
parent 7b52300287
commit d7e4350d42
23 changed files with 115 additions and 30 deletions
+1 -1
View File
@@ -1,5 +1,5 @@
// TODO: muted automatically, investigate should it be ran for JS or not
// IGNORE_BACKEND: JS
// IGNORE_BACKEND: JS, NATIVE
fun foo(x: Cloneable) = x
+1 -1
View File
@@ -1,5 +1,5 @@
// TODO: muted automatically, investigate should it be ran for JS or not
// IGNORE_BACKEND: JS
// IGNORE_BACKEND: JS, NATIVE
// WITH_RUNTIME
@@ -1,5 +1,5 @@
// TODO: muted automatically, investigate should it be ran for JS or not
// IGNORE_BACKEND: JS
// IGNORE_BACKEND: JS, NATIVE
// WITH_RUNTIME
-3
View File
@@ -5,9 +5,6 @@ operator fun String.get(vararg value: Any) : String {
operator fun Int.get(vararg value: Any) : Int {
return if (value[0] == 44 && value[1] == "example") 1 else 0
}
fun main(args: Array<String>) {
12 [44, "example"]
}
fun box(): String {
if ("foo" [44, "example"] != "OK") return "fail1"
@@ -46,6 +46,14 @@ fun testFloatArray() {
throw AssertionError()
}
fun testDoubleArray() {
DoubleArray(5) { i ->
if (i == 3) return
i.toDouble()
}
throw AssertionError()
}
fun box(): String {
testArray()
testIntArray()
@@ -53,5 +61,6 @@ fun box(): String {
testBooleanArray()
testCharArray()
testFloatArray()
testDoubleArray()
return "OK"
}