Stdlib tests: cleanup warnings

This commit is contained in:
Ilya Gorbunov
2018-09-08 06:28:33 +03:00
parent 7e0a658de7
commit 6786b9ece2
4 changed files with 19 additions and 20 deletions
@@ -233,12 +233,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, arrayOf(arrayOf("foo")), charArrayOf('d'), booleanArrayOf(false),
intArrayOf(-1), longArrayOf(-1), shortArrayOf(-1), byteArrayOf(-1),
@@ -154,8 +154,10 @@ public class SequenceTest {
assertFailsWith<IllegalArgumentException> { fibonacci().drop(-1) }
val dropMax = fibonacci().drop(Int.MAX_VALUE)
val dropMore = dropMax.drop(Int.MAX_VALUE)
val takeMore = dropMax.take(Int.MAX_VALUE)
run @Suppress("UNUSED_VARIABLE") {
val dropMore = dropMax.drop(Int.MAX_VALUE)
val takeMore = dropMax.take(Int.MAX_VALUE)
}
}