-
Notifications
You must be signed in to change notification settings - Fork 64
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
MonadAccum law tests #125
base: master
Are you sure you want to change the base?
MonadAccum law tests #125
Conversation
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.
How can I help here?
Kudos for the tests!
I don't know MonadAccum
, so I might not be the best person to review this.
@andreasabel I mostly tagged you as a reviewer because you suggested/requested some tests. Was this what you had in mind? I started with |
Well done!
Testing the laws is of course the gold standard! Even simple unit tests that cover the functionality are useful, detecting basic problems like missing exports, unintended loops, etc. |
This relates to this comment here. Specifically, these tests use property-based testing to exercise all the stated laws of
MonadAccum
, with a large enough test count to be meaningful.