@hackage / lazy-search

Finds values satisfying a lazy predicate

Latest0.1.3.0

About

Metadata

  • Last updated , by BrentYorgey
  • License BSD-3-Clause
  • Categories Testing
  • Maintained by: byorgey@gmail.com

  • Lottery factor: 0

Links

Installation

Tested Compilers

  1. 9.2.2
  2. 9.0.2
  3. 8.10.7
  4. 8.8.4
  5. 8.6.5

Readme

This library can be used as a property based testing driver, and more generally to find values satisfying a predicate (a -> Bool). This is done by a size bounded search, and it uses the laziness of the predicate to speed up the search by avoiding isomorphic values.

This is similar to LazySmallCheck but uses size instead of depth and a faster algorithm.