We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b6ee222 commit db50e6fCopy full SHA for db50e6f
kotlinx-collections-immutable/tests/src/test/kotlin/kotlinx.collections.immutable/ImmutableListTest.kt
@@ -124,8 +124,9 @@ class ImmutableListTest {
124
val subList = builder.subList(2, 5)
125
builder[4] = 'b'
126
assertEquals("cxb", subList.joinToString(""))
127
- subList.replaceAll { it -> it + 1 }
128
- assertEquals("abdycxyz12", builder.joinToString(""))
+ subList.removeAt(0)
+ assertEquals("xb", subList.joinToString(""))
129
+ assertEquals("abxbxyz12", builder.joinToString(""))
130
}
131
132
fun <T> ImmutableList<T>.testMutation(operation: MutableList<T>.() -> Unit) {
0 commit comments