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

Fix subscript set operation #70

Merged
merged 5 commits into from May 17, 2024
Merged

Fix subscript set operation #70

merged 5 commits into from May 17, 2024

Conversation

stephencelis
Copy link
Member

PR #66 fixed one issue but introduced a regression. This PR changes the subscript setter to do a swap when identity of elements match something that already exists in the collection.

I've also stubbed out a fake property testing suite that can hopefully be expanded with more operations soon.

Fixes #69.

PR #66 fixed one issue but introduced a regression. This PR changes the
subscript setter to do a `swap` when identity of elements match
something that already exists in the collection.

I've also stubbed out a fake property testing suite that can hopefully
be expanded with more operations soon.

Fixes #69.
@stephencelis stephencelis merged commit d533cd1 into main May 17, 2024
4 checks passed
@stephencelis stephencelis deleted the fix-sort branch May 17, 2024 06:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Regression when using sort(using: Comparator)
2 participants