The testing-type-modifiers package

This is a package candidate release! Here you can preview how this package release will appear once published to the main package index (which can be accomplished via the 'maintain' link below). Please note that once a package has been published to the main package index it cannot be undone! Please consult the package uploading documentation for more information.

[maintain]

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

Versions0.1.0.0, 0.1.0.1, 0.1.0.1
Change logNone available
Dependenciesbase (==4.*) [details]
LicensePublicDomain
AuthorJonas Duregård
Maintainerjonas.duregard@gmail.com
CategoryTesting
Source repositoryhead: git clone https://github.com/JonasDuregard/testing-type-modifiers
UploadedWed Jul 1 09:26:16 UTC 2015 by JonasDuregard

Modules

[Index]

Downloads

Maintainers' corner

For package maintainers and hackage trustees