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

Fix some bounds-arithmetic flaws in the tests, and update to quickcheck v1 #28

Merged
merged 3 commits into from
Sep 14, 2024

Conversation

musicinmybrain
Copy link
Contributor

Some tests relied on unsigned arithmetic that could wrap around, and quickcheck 1.0 was able to reveal the problem. All of the issues were in the tests rather than in the implementation.

Fixes #22. Fixes compatibility with quickcheck v1.

The second commit actually updates the quickcheck dev-dependency to 1.0.

Some tests relied on unsigned arithmetic that could wrap around, and
quickcheck 1.0 was able to reveal the problem. All of the issues were in
the tests rather than in the implementation.

Fixes droundy#22. Fixes compatibility with quickcheck v1.
Copy link
Owner

@droundy droundy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks so much for tracking this down and making this fix. Impressive!

I'll give it a week or so and will just merge as is if you haven't responded. (I know I could make the change myself, but seems nicer to let you have the decision since you did the work!)

src/lib.rs Show resolved Hide resolved
@droundy droundy merged commit 36e1b4c into droundy:master Sep 14, 2024
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.

test::check_array_ref_5 and test::check_array_mut_ref_7 fail with quickcheck@1.0.3
2 participants