We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Some invariants show up again and again. A few examples:
Coding properties for them by hand requires very similar code again and again.
Provide a mechanism to apply standard invariants onto functions, types etc.
Different APIs are thinkable:
class IdempotencyProperties<T> { abstract T createFunction(); }
Here's how this can be done in quickcheck (Haskell): https://github.com/knupfer/test-invariant/blob/master/src/Test/Invariant.hs
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Testing Problem
Some invariants show up again and again. A few examples:
Coding properties for them by hand requires very similar code again and again.
Suggested Solution
Provide a mechanism to apply standard invariants onto functions, types etc.
Different APIs are thinkable:
Discussion
Here's how this can be done in quickcheck (Haskell): https://github.com/knupfer/test-invariant/blob/master/src/Test/Invariant.hs
The text was updated successfully, but these errors were encountered: