Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug: Transistion from PersistentVector to SmallPersistentVector on removing an element fails #78

Closed
mschirmacher opened this issue Jul 9, 2020 · 1 comment
Assignees

Comments

@mschirmacher
Copy link

Tested with '0.3.2'

    @Test
    fun foo() {
        Array(33) { "" }
            .asList()
            .toPersistentList()
            .removeAt(32)
    }

Results in:

Assertion failed
java.lang.AssertionError: Assertion failed
	at kotlinx.collections.immutable.internal.CommonFunctionsKt.assert(commonFunctions.kt:8)
	at kotlinx.collections.immutable.implementations.immutableList.SmallPersistentVector.<init>(SmallPersistentVector.kt:18)
	at kotlinx.collections.immutable.implementations.immutableList.PersistentVector.pullLastBufferFromRoot(PersistentVector.kt:183)
	at kotlinx.collections.immutable.implementations.immutableList.PersistentVector.removeFromTailAt(PersistentVector.kt:162)
	at kotlinx.collections.immutable.implementations.immutableList.PersistentVector.removeAt(PersistentVector.kt:151)
@qurbonzoda qurbonzoda self-assigned this Aug 9, 2020
@qurbonzoda
Copy link
Contributor

qurbonzoda commented Aug 9, 2020

This problem was filed before (#75) and is already fixed in master.
Thank you for your feedback!
Please feel free to open issues for any other problems you face with the project.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants