test-invariant: Provide common invariants to be checked with QuickCheck
test-invariant is a library for providing common invariants of functions as higher order polymorphic functions. This reduces for a lot of cases the need for writing prop_ functions for QuickCheck.
>>>
quickCheck $ idempotent (abs :: Int -> Int)
>>>
quickCheck $ involutory not
>>>
quickCheck $ not . involutory (+ (2 :: Int))
Downloads
- test-invariant-0.4.2.0.tar.gz [browse] (Cabal source package)
- Package description (as included in the package)
Maintainer's Corner
For package maintainers and hackage trustees
Candidates
- No Candidates
Versions [RSS] | 0.3.1.2, 0.4.0.0, 0.4.1.0, 0.4.2.0, 0.4.3.0, 0.4.4.0, 0.4.5.0 |
---|---|
Dependencies | base (>=4 && <5), QuickCheck [details] |
Tested with | ghc >=7.10 |
License | BSD-3-Clause |
Copyright | 2015 Florian Knupfer |
Author | Florian Knupfer <fknupfer@gmail.com> |
Maintainer | Florian Knupfer <fknupfer@gmail.com> |
Category | Testing |
Home page | https://github.com/knupfer/test-invariant |
Source repo | head: git clone https://github.com/knupfer/test-invariant |
Uploaded | by knupfer at 2015-05-03T17:14:48Z |
Distributions | NixOS:0.4.5.0 |
Reverse Dependencies | 2 direct, 15 indirect [details] |
Downloads | 4942 total (21 in the last 30 days) |
Rating | (no votes yet) [estimated by Bayesian average] |
Your Rating | |
Status | Docs available [build log] Last success reported on 2015-05-03 [all 1 reports] |