nick8325 / quickcheck

Automatic testing of Haskell programs.
Other
713 stars 119 forks source link

`total` is a bit crude #265

Closed sjakobi closed 5 months ago

sjakobi commented 5 years ago

https://github.com/nick8325/quickcheck/blob/e321b2e50718a69883478475a852b6eaa8c38b17/Test/QuickCheck/Property.hs#L966-L970

It simply throws an error if evaluation goes wrong.

Instead, I currently use the spoon package, which catches the error:

prop myValue = isJust (Control.Spoon.spoon myValue)