testing-feat: Functional Enumeration of Algebraic Types
Feat (Functional Enumeration of Algebraic Types) provides
enumerations as functions from natural numbers to values
toEnum but for any algebraic data type). This
can be used for SmallCheck-style systematic testing,
QuickCheck style random testing, and hybrids of the two.
The enumerators are defined in a very boilerplate manner and there is a Template Haskell script for deriving the class instance for most types. Test.Feat contain a subset of the other modules that should be sufficient for most test usage. There are some small and large example in the tar ball.
The generators are provided by the size-based package. This means other libraries that implement the Sized class can use the same generator definitions. One such is the lazy-search package, that uses laziness to search for values and test properties. This is typically a lot faster than Feat for properties that have preconditions (logical implication), but can not be used for random selection of values.
|Versions||0.1, 0.2, 0.3, 0.3.0.1, 0.4, 0.4.0.1, 0.4.0.2, 0.4.0.3, 22.214.171.124, 126.96.36.199|
|Dependencies||base (>=4.5 && <5), QuickCheck (>2 && <3), semigroups (<0.19), size-based (<0.2), testing-type-modifiers (<0.2) [details]|
|Source repo||head: git clone https://github.com/JonasDuregard/testing-feat|
|Uploaded||by JonasDuregard at Thu May 17 17:01:31 UTC 2018|
|Distributions||LTSHaskell:0.4.0.3, NixOS:188.8.131.52, Stackage:184.108.40.206, openSUSE:0.4.0.3|
|Downloads||12766 total (99 in the last 30 days)|
|Rating||(no votes yet) [estimated by rule of succession]|
|Status||Docs available [build log]
Last success reported on 2018-05-17 [all 1 reports]
Hackage Matrix CI
For package maintainers and hackage trustees