Apocrypha

testing-type-modifiers

Data type modifiers for property based testing

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 @

Available in

OverlayNewestEbuildsLast activity
gentoo gitweb ↗ 0.1.0.1 1 13 h details ›
haskell GitHub ↗ 0.1.0.1 1 2 d details ›

Versions & arches

VersionOverlay amd64arm64x86ppc64riscv Committed
0.1.0.1 gentoo amd64 testing arm64 testing x86 testing ppc64 testing riscv testing view · download · history ↗
0.1.0.1 haskell amd64 testing arm64 testing x86 testing ppc64 testing riscv testing 6 mo view · download · history ↗

Use flags of 0.1.0.1

  • doc Add extra documentation (API, Javadoc, etc). It is recommended to enable per package instead of globally
  • hscolour Include coloured haskell sources to generated documentation (dev-haskell/hscolour)
  • profile Add support for software performance analysis (will likely vary from ebuild to ebuild)

Runtime dependencies of 0.1.0.1

show 2 lines