Clean warnings and refactor stdlib tests.

Merge RangeJVMTest into RangeTest.
This commit is contained in:
Ilya Gorbunov
2017-04-12 09:23:57 +03:00
parent ac46f1e23d
commit 6ae19e03d5
32 changed files with 133 additions and 124 deletions
@@ -295,7 +295,7 @@ class CollectionTest {
}
assertFailsWith<UnsupportedOperationException> {
arrayListOf<Int>().reduceIndexed { index, a, b -> a + b }
arrayListOf<Int>().reduceIndexed { index, a, b -> index + a + b }
}
}
@@ -315,7 +315,7 @@ class CollectionTest {
}
assertFailsWith<UnsupportedOperationException> {
arrayListOf<Int>().reduceRightIndexed { index, a, b -> a + b }
arrayListOf<Int>().reduceRightIndexed { index, a, b -> index + a + b }
}
}
@@ -626,6 +626,7 @@ class CollectionTest {
// lists throw an exception if out of range
assertFails {
@Suppress("UNUSED_VARIABLE")
val outOfBounds = list[2]
}