-
Notifications
You must be signed in to change notification settings - Fork 164
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
Add property testing for Felt bit shifts #701
Conversation
Tests look good! but one thing I see consistently missing is comments on tests indicating motivation, what the tests wants to check, and not how it does it. This improves both understanding for newcomers, modification of the tests in the future, and most importantly, debugging when someone else makes them fail. |
Agree! Will make the required changes |
Added comments to each test. Please don't merge because I also want to check if a particular change to the tests is needed |
All done! The change wasn't necessary |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great work!
Add property testing for Felt bit shifts
Description
Property-based test that ensures, for 100
value
s that are randomly generated each time tests are run, that performing a bit shift to the left or to the right byshift_amount
of bits (between 0 and 999) returns a result that is inside of the range [0, p].Checklist