ImmutableArrayList: better exception types and messages

This commit is contained in:
Stepan Koltsov
2012-05-18 15:02:53 +04:00
parent 4273eea502
commit 32f83f0587
2 changed files with 9 additions and 9 deletions
@@ -42,7 +42,7 @@ class ImmutableArrayListTest() : TestCase() {
try {
list[expectedLength]
fail()
} catch (e: IllegalArgumentException) {
} catch (e: IndexOutOfBoundsException) {
// expected
}
}