ImmutableArrayList: better exception types and messages
This commit is contained in:
@@ -42,7 +42,7 @@ class ImmutableArrayListTest() : TestCase() {
|
||||
try {
|
||||
list[expectedLength]
|
||||
fail()
|
||||
} catch (e: IllegalArgumentException) {
|
||||
} catch (e: IndexOutOfBoundsException) {
|
||||
// expected
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user