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

Add some iterator tests #101

Open
wants to merge 4 commits into
base: feature/slice-iterable-testing-prototype
Choose a base branch
from

Conversation

hu13
Copy link

@hu13 hu13 commented Nov 20, 2024

I changed the start index to 0 because I expect the iterator to be able to getCurrent() element if one exists before calling moveNext()?

I also add bound check to getCurrent().

Lastly, getMany() will advance the index beyond the last element if the requested amount is the entire list to mark that there are no items left.

@hu13 hu13 marked this pull request as ready for review November 20, 2024 08:02
@hu13 hu13 changed the base branch from feature/slice-iterable-testing-prototype to main November 20, 2024 08:04
@hu13 hu13 changed the base branch from main to feature/slice-iterable-testing-prototype November 20, 2024 08:06
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.

1 participant