Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Add basic arbitrary-model-tests based fuzzing #14

Merged
merged 4 commits into from
Jan 13, 2020

Conversation

Nemo157
Copy link
Collaborator

@Nemo157 Nemo157 commented Jan 12, 2020

This fuzzes the implementation against a reference model (in this case just a Vec with a bit of pre-validation of the operation to make it fixed length). After just a couple minutes of fuzzing I didn't find any behaviour differences, but it did find an underflow while calculating the end index for drain (which after a little investigation also causes behaviour differences). I've fixed drain and added edge-case tests for it.

@Lokathor
Copy link
Owner

Looks good, all set to merge?

@Nemo157
Copy link
Collaborator Author

Nemo157 commented Jan 13, 2020

👍

@Lokathor Lokathor merged commit d0bdff5 into Lokathor:master Jan 13, 2020
@Nemo157 Nemo157 deleted the arbitrary-model-tests branch January 13, 2020 09:10
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants