I’m happy to announce the release of QCheck 0.21, a property-based testing library in the style of Haskell’s QuickCheck ![]()
More information is available in the QCheck Github repository and in the package documentation.
The 0.21 release offers better negative test integration and furthermore fixes a couple of bugs in QCheck.Shrink and in ppx_deriving_qcheck:
- make
Test.check_result,Test.check_cell_exn, andTest.check_exnhonor test polarity by raisingTest_unexpected_successwhen a negative test (expected to have a counter example), unexpectedly succeeds. - fix issue with
ppx_deriving_qcheckderiving a generator with unboundgenfor recursive types #269 and a related issue when deriving a generator for a record type - fix #241 causing
QCheck.Shrink.int*to emit duplicates, also affectingQCheck.Shrink.{char,string} - fix a cornercase where
Shrink.list_spinewould emit duplicates