disco-0.1.5: Functional programming language for teaching discrete math.
Copyrightdisco team and contributors
LicenseBSD-3-Clause
Maintainerbyorgey@gmail.com
Safe HaskellNone
LanguageHaskell2010

Disco.Property

Description

Properties of disco functions.

Synopsis

Documentation

invertMotive :: SearchMotive -> SearchMotive Source #

Toggles which outcome (finding or not finding the thing being searched for) qualifies as success, without changing the thing being searched for.

invertPropResult :: TestResult -> TestResult Source #

Flips the success or failure status of a PropResult, leaving the explanation unchanged.

generateSamples :: Member Random r => SearchType -> IEnumeration a -> Sem r ([a], SearchType) Source #

Select samples from an enumeration according to a search type. Also returns a SearchType describing the results, which may be Exhaustive if the enumeration is no larger than the number of samples requested.