Skip to content

Tests: Use custom tests to verify operations on empty slices are no-ops.#300

Merged
josephlr merged 3 commits intomasterfrom
custom_test
Oct 22, 2022
Merged

Tests: Use custom tests to verify operations on empty slices are no-ops.#300
josephlr merged 3 commits intomasterfrom
custom_test

Conversation

@josephlr
Copy link
Member

@josephlr josephlr commented Oct 22, 2022

Reworking of #299 to keep our custom tests in a single file (and keep things better organized in general).

The individual commits are meaningful here, so we should "merge" rather than "squash" this PR.

josephlr and others added 3 commits October 22, 2022 13:25
This makes it much easier to run this RNG alongside other tests.

Signed-off-by: Joe Richey <joerichey@google.com>
Signed-off-by: Joe Richey <joerichey@google.com>
Modify the custom tests so that they would have detected and prevented
the issue fixed in #298.
@josephlr josephlr merged commit 97c1789 into master Oct 22, 2022
@josephlr josephlr deleted the custom_test branch October 22, 2022 20:32
takumi-earth pushed a commit to earthlings-dev/getrandom that referenced this pull request Jan 27, 2026
Tests: Use custom tests to verify operations on empty slices are no-ops.

Reworking of rust-random#299 to keep our custom tests in a single file (and keep things better organized in general).
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.

3 participants