Automatic testing of Haskell programs.
Go to file
Marcin Szamotulski d66336ce59
Added All and Any monoids (#397)
* Added All and Any monoids

`All` is a monoid build around `.&&.`. It is useful when writing
complex properties which check multiple conditions.  Since it is
a monoid it allows one to use `foldMap` which is often much more
ergonomic than using `conjoin`.

`All` satisfies `monoid` laws up to `isSuccess`, unless one is using
`checkCoverage` & `cover`.  I'd argue this is not a problem since
`checkCoverage` and `cover` are most often added at the top of the
property.

This patch also adds `Any` monoid build around `.||.`.

Tests are also included.
2024-08-27 09:17:06 +02:00
.github/workflows Fix annoyingly broken CI 2024-07-24 19:00:23 +02:00
examples remove block comment to get rid of annoying warning from quickCheckAll 2024-04-11 09:13:00 +02:00
src/Test Added All and Any monoids (#397) 2024-08-27 09:17:06 +02:00
tests Added All and Any monoids (#397) 2024-08-27 09:17:06 +02:00
.gitignore Add test-hugs script 2020-04-16 15:13:16 +03:00
cabal.haskell-ci Add test-hugs script 2020-04-16 15:13:16 +03:00
changelog 2.15.0 2024-04-18 10:06:04 +02:00
LICENSE Update copyright year 2019-03-24 14:20:53 +01:00
make-hugs Added All and Any monoids (#397) 2024-08-27 09:17:06 +02:00
QuickCheck.cabal Added All and Any monoids (#397) 2024-08-27 09:17:06 +02:00
README Fix installation instructions in README 2021-01-08 18:13:03 +03:00
Setup.lhs Added Cabal build system. 2006-11-17 15:22:30 +00:00
test-hugs Add another test to test-hugs because why not 2024-03-15 13:24:37 +01:00

This is QuickCheck 2, a library for random testing of program properties.

Add `QuickCheck` to your package dependencies to use it in tests or REPL.

The quickcheck-instances [1] companion package provides instances for types in
Haskell Platform packages at the cost of additional dependencies.

The make-hugs script makes a Hugs-compatible version of QuickCheck.
It may also be useful for other non-GHC implementations.

[1]: http://hackage.haskell.org/package/quickcheck-instances