Throw on invalid AbstractMutableList.addAll index #KT-47211
This commit is contained in:
committed by
Space
parent
7e44cddbab
commit
59031543e2
@@ -127,6 +127,8 @@ class AbstractCollectionsTest {
|
||||
|
||||
assertEquals(listOf("ok", "element"), list)
|
||||
|
||||
assertFailsWith<IndexOutOfBoundsException> { list.addAll(-1, listOf()) }
|
||||
|
||||
compare(list.storage, list) {
|
||||
listBehavior()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user