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

moveToIndex bug #22582

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft

Conversation

kian-thompson
Copy link
Contributor

@kian-thompson kian-thompson commented Sep 21, 2024

Say we do the following:

  1. arr = [0, 1, 2]
  2. arr.moveToIndex(2, 0)
  3. We expect a result of [1, 2, 0], but we actually get [1, 0, 2]

This seems to be the case regardless of what the "source" index is. As long as the destination index is the end of the array, it will only ever move it to the index just before the end.

AB#16323

@github-actions github-actions bot added base: main PRs targeted against main branch area: dds Issues related to distributed data structures area: dds: tree labels Sep 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: dds: tree area: dds Issues related to distributed data structures base: main PRs targeted against main branch
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant