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

Enumerator Tests #164

Merged
merged 1 commit into from
Oct 28, 2023
Merged

Enumerator Tests #164

merged 1 commit into from
Oct 28, 2023

Conversation

martindevans
Copy link
Contributor

Added tests covering Enumerator.

The (Span<T> span, int length) constructor makes it very easy to access out of bounds. Initially I added range checking, but I think it's neater to just remove that constructor altogether. The call site (there is only one) can slice the Span to the correct length.

 - Removed constructor which made it easy to read out of the valid span range.
  - Only used in one place, fixed that call site.
@genaray genaray merged commit 9638bad into genaray:master Oct 28, 2023
1 check passed
@martindevans martindevans deleted the enumerator_tests branch October 28, 2023 15:08
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.

None yet

2 participants