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

move the key conversion (asIndexKeyOfSize:) to the iterator #593

Merged
merged 1 commit into from
Feb 7, 2024

Conversation

MarcusDenker
Copy link
Contributor

SoilIndexIterator>>#find:ifAbsent: now does the convertion

  • This allows us to remove is from #find: and the parametor of find: in #removeKey:ifAbsent: in the index.
  • #find: is now in sync between the index and the iterator (taking key, not binKey).

The PR changes most of the tests in SoilIndexedDictionaryTest to not use integer keys, as this can hide bugs.

(there are some not yet changed, the ones for nextAssociation/lastAssociation and testNextKeyCloseToWithTransaction, that will be another PR as there the change seems to show another bug

 SoilIndexIterator>>#find:ifAbsent: now does the convertion

- This allows us to remove is from #find: and the parametor of find: in  #removeKey:ifAbsent: in the index.
- #find: is now in sync between the index and the iterator (taking key, not binKey).

The PR changes most of the tests in SoilIndexedDictionaryTest to not use integer keys, as this can hide bugs.

(there are some not yet changed, the ones for nextAssociation/lastAssociation and testNextKeyCloseToWithTransaction, that will be another PR as there the change seems to show another bug
@MarcusDenker MarcusDenker requested a review from noha February 7, 2024 14:31
@noha noha merged commit 1273556 into main Feb 7, 2024
2 checks passed
@MarcusDenker MarcusDenker deleted the asIndexKeyOfSize-interator branch February 7, 2024 14:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

2 participants