QuickCheck library for random testing of program properties

Edit Package ghc-QuickCheck

The programmer provides a specification of the program, in the form of properties which functions should satisfy, and QuickCheck then tests that the properties hold in a large number of randomly generated cases.

Specifications are expressed in Haskell, using combinators defined in the QuickCheck library. QuickCheck provides combinators to define properties, observe the distribution of test data, and define test data generators.

Refresh
Refresh
Source Files
Filename Size Changed
QuickCheck-2.11.3.tar.gz 0000055910 54.6 KB
ghc-QuickCheck.changes 0000010795 10.5 KB
ghc-QuickCheck.spec 0000002976 2.91 KB
Revision 14 (latest revision is 26)
Dominique Leuenberger's avatar Dominique Leuenberger (dimstar_suse) accepted request 623701 from Peter Simons's avatar Peter Simons (psimons) (revision 14)
- Cosmetic: replace tabs with blanks, strip trailing white space,
  and update copyright headers with spec-cleaner.

        * New genericShrink function provides generic shrinking with GHC.
        * New combinator x === y: fails if x /= y, but also prints their values
        * New function generate :: Gen a -> IO a for running a generator.
        * New combinators infiniteList and infiniteListOf for generating infinite lists.
        * Several combinators added to the main Test.QuickCheck module which
          were previously languishing in other modules. Of particular interest:
          quickCheckAll, ioProperty.
        * New combinators delay and capture which can be used (unsafely!)
          to reuse the random number seed. Useful for generating
          polymorphic (rank-2) values.
        * A new Discard data type and a Testable instance for discarding test cases.
        * All modifiers now have Functor instances and accessor functions.
        * Pressing ctrl-C during shrinking now shows the last failed
          test case, rather than the current shrinking candidate.
        * Experimental support for UHC. You will need the latest version of Cabal from git.
        * The Int generator now only generates fairly small numbers.
        * The new Small and Large modifiers control the distribution of integers
          (Small generates small numbers, Large from the whole range).
        * Floating-point numbers shrink better.
        * QuickCheck now uses TFGen rather than StdGen on newer versions
          of GHC, because StdGen's random numbers aren't always random.
        * 'variant' now uses a prefix code. This should prevent some
          potential bananaskins with coarbitrary.
        * The Gen monad now uses an abstract type QCGen rather than StdGen.
        * The Result type now returns the thrown exception and number
          of failed shrink attempts.
        * Property is now a newtype rather than Gen Prop as it was before.
Comments 0
openSUSE Build Service is sponsored by