Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.
Sign upAdd thorough tests for Producer::split_at #457
Conversation
cuviper
added some commits
Oct 14, 2017
This comment has been minimized.
This comment has been minimized.
|
bors r+ |
bors bot
added a commit
that referenced
this pull request
Oct 14, 2017
This comment has been minimized.
This comment has been minimized.
bors
bot
merged commit ccf7511
into
rayon-rs:master
Oct 14, 2017
2 checks passed
bors
Build succeeded
continuous-integration/travis-ci/pr
The Travis CI build passed
Details
cuviper
deleted the
cuviper:test-producer-split_at
branch
Oct 18, 2018
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
cuviper commentedOct 14, 2017
This takes one of the test cases from
intersperse, which was veryhelpful in poking corner cases, and generalizes it to test all
Producers.This found a semi-bug with
enumerate().rev()in the process -- byzipping with indexes up to
usize::MAX, reverse iteration has toiterate a loooong way back. It now uses the exact length needed.