test-invariant: Provide common invariants to be checked with QuickCheck

[ bsd3, library, testing ] [ Propose Tags ]

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))




Maintainer's Corner

For package maintainers and hackage trustees


  • No Candidates
Versions [RSS],,,,,,
Dependencies base (>=4.8 && <4.9), QuickCheck [details]
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-03T13:00:32Z
Distributions NixOS:
Downloads 4482 total (10 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-10-20 [all 3 reports]