Ignored/fixed some tests for Kotlin/Native
This commit is contained in:
@@ -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
@@ -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
|
||||
|
||||
|
||||
@@ -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"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user