The testing-type-modifiers package

[ Tags: 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 it also provides an access function that converts to the underlying type, which enables point-free style properties as such:

prop_tail_length2 = (> 0) . length . nonEmpty

Properties

Versions 0.1.0.0, 0.1.0.1
Dependencies base (==4.*) [details]
License PublicDomain
Author Jonas Duregård
Maintainer jonas.duregard@gmail.com
Category Testing
Source repository head: git clone https://github.com/JonasDuregard/testing-type-modifiers
Uploaded Wed Jul 1 09:26:43 UTC 2015 by JonasDuregard
Distributions NixOS:0.1.0.1
Downloads 384 total (114 in the last 30 days)
Rating (no votes yet) [estimated by rule of succession]
Your Rating
  • λ
  • λ
  • λ
Status Docs available [build log]
Last success reported on 2015-07-01 [all 1 reports]
Hackage Matrix CI

Modules

[Index]

Downloads

Maintainer's Corner

For package maintainers and hackage trustees