The latest version of testing-type-modifiers is 0.1.0.1-0.
testing-type-modifiers
Version 0.1.0.0 revision 2 uploaded by HerbertValerioRiedel.
Package meta
- Synopsis
- Data type modifiers for property based testing
- Description
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
- Author
- Jonas Duregård
- Bug reports
- n/a
- Category
- Testing
- Copyright
- n/a
- Homepage
- n/a
- Maintainer
- jonas.duregard@gmail.com
- Package URL
- n/a
- Stability
- n/a