Clean up test skips after KT-17137
We need to clean these up since primitive array `is` checks work now (cherry picked from commit b413e9ef51606c51ebfb21bd7ff646b0fb75470a)
This commit is contained in:
committed by
Anton Bannykh
parent
4a5e9bbc7f
commit
715d5e90ba
@@ -22,8 +22,5 @@ fun test(createIntNotLong: Boolean): String {
|
||||
}
|
||||
|
||||
fun box(): String {
|
||||
// Only run this test if primitive array `is` checks work (KT-17137)
|
||||
if ((intArrayOf() as Any) is Array<*>) return "OK"
|
||||
|
||||
return test(true) + test(false)
|
||||
}
|
||||
@@ -53,9 +53,6 @@ fun foo(a: Any): Int {
|
||||
}
|
||||
|
||||
fun box(): String {
|
||||
// Only run this test if primitive array `is` checks work (KT-17137)
|
||||
if ((intArrayOf() as Any) is Array<*>) return "OK"
|
||||
|
||||
val iA = IntArray(1)
|
||||
if (foo(iA) != 1) return "fail int[]"
|
||||
val sA = ShortArray(1)
|
||||
|
||||
@@ -21,9 +21,6 @@ fun test(b: Boolean): String {
|
||||
}
|
||||
|
||||
fun box(): String {
|
||||
// Only run this test if primitive array `is` checks work (KT-17137)
|
||||
if ((intArrayOf() as Any) is Array<*>) return "OK"
|
||||
|
||||
if (test(true) != "OK") return "fail 1: ${test(true)}"
|
||||
|
||||
if (test(false) != "OK") return "fail 1: ${test(false)}"
|
||||
|
||||
@@ -13,9 +13,6 @@ fun test(x: Any): Int {
|
||||
}
|
||||
|
||||
fun box(): String {
|
||||
// Only run this test if primitive array `is` checks work (KT-17137)
|
||||
if ((intArrayOf() as Any) is Array<*>) return "OK"
|
||||
|
||||
assertEquals(123, test(intArrayOf(0, 0, 0, 0)))
|
||||
return "OK"
|
||||
}
|
||||
@@ -231,12 +231,6 @@ class ArraysTest {
|
||||
}
|
||||
|
||||
@Test fun contentDeepToString() {
|
||||
// Don't run this test unless primitive array `is` checks are supported (KT-17137)
|
||||
if ((intArrayOf() as Any) is Array<*>) {
|
||||
assertTrue(true)
|
||||
return
|
||||
}
|
||||
|
||||
val arr = arrayOf("aa", 1, null, charArrayOf('d'))
|
||||
assertEquals("[aa, 1, null, [d]]", arr.contentDeepToString())
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user