fosskers / nonempty-collections

Correct-by-construction non-empty collections.
https://crates.io/crates/nonempty-collections
MIT License
15 stars 6 forks source link

fix: index out of bound when chunking #17

Closed nicolas-vivot closed 8 months ago

nicolas-vivot commented 8 months ago

This PR fixes a certain number of issues when using the iterator from NEChunks.

I also added / enriched tests to ensure the missed edge cases are not going to blow up on next modification.

nicolas-vivot commented 8 months ago

LGTM