Revert "Clean up test skips after KT-17137"

This reverts commit 715d5e9
This commit is contained in:
Anton Bannykh
2018-04-10 13:29:10 +03:00
parent 703611a15c
commit f8c0c54a66
5 changed files with 18 additions and 0 deletions
@@ -22,5 +22,8 @@ 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)
}
+3
View File
@@ -53,6 +53,9 @@ 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)
+3
View File
@@ -21,6 +21,9 @@ 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,6 +13,9 @@ 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"
}