testing-type-modifiers: Data type modifiers for property based testing

[ library, public-domain, testing ] [ Propose Tags ]

Property based testing libraries such as QuickCheck tend to include type modifiers. Most of them are used to quantify over subsets of a type. For example a property on non-empty lists:

  prop_tail_length (NonEmpty xs) = length (tail xs) == length xs - 1

This library is intended to supply these modifiers to be used by testing libraries, in an effort to make properties more portable between testing frameworks.

For every modifier there is also an access function that converts to the underlying type, which enables point-free style properties as such:

prop_tail_length2 = (> 0) . length . nonEmpty

Modules

[Index]

Downloads

Note: This package has metadata revisions in the cabal description newer than included in the tarball. To unpack the package including the revisions, use 'cabal get'.

Maintainer's Corner

Package maintainers

For package maintainers and hackage trustees

Candidates

Versions [RSS] 0.1.0.0, 0.1.0.1
Dependencies base (>=4.3 && <5) [details]
License LicenseRef-PublicDomain
Author Jonas Duregård
Maintainer jonas.duregard@gmail.com
Revised Revision 2 made by HerbertValerioRiedel at 2015-07-16T12:22:56Z
Category Testing
Source repo head: git clone https://github.com/JonasDuregard/testing-type-modifiers
Uploaded by JonasDuregard at 2015-06-30T17:33:45Z
Distributions LTSHaskell:0.1.0.1, NixOS:0.1.0.1, Stackage:0.1.0.1
Reverse Dependencies 2 direct, 38 indirect [details]
Downloads 8359 total (107 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 1 reports]