support quickcheck test case classification #64
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
When a property test succeeds and QC's classify function has been used, the output now has additional information about the distribution of test cases. Example outputs:
[OK, passed 1000 tests (49.6% fully trivial, 76.1 half trivial)]
[Arguments exhausted after 53 tests (100% half trivial)]
The #ifdefs are necessary to account for API changes in version 2.10 and 2.12 of QuickCheck. I was not able to build against QuickCheck < 2.7 because that requires base < 4.8, and the oldest ghc I can install with ghcup is 7.10.3 which is tied to base-4.8.2.0. If you accept this PR and make a new release, I suggest you also raise the lower bound on the QuickCheck dependency to 2.7.