sr-extra-1.46.3.2: A grab bag of modules.

Copyright(c) Koen Claessen, John Hughes 2001, Jeremy Shaw 2008
LicenseBSD-style (see the file libraries\/base\/LICENSE)
Maintainerjeremy@n-heptane.com
Stabilityexperimental
Portabilityportable
Safe HaskellSafe
LanguageHaskell98

Test.QUnit

Description

Some glue code for running QuickCheck tests using the HUnit framework.

This module provides an instance of Test.HUnit.Testable for Test.QuickCheck.Property, which makes it trivial to use QuickCheck properties in the HUnit framework:

  import Test.HUnit
  import Test.HUnit.Text
  import Test.QuickCheck
  import Test.QUnit

  runTestTT $ ("x /= x" ~: property (x -> x /= x))

The QuickCheck Property will be run using Test.QuickCheck.defaultConfig. If you need to specific an alternate config, then use testQuickCheck like this:

  runTestTT $ ("x /= x" ~: testQuickCheck myConfig (x -> x /= x))

Synopsis

Documentation

testQuickCheck Source

Arguments

:: Testable a 
=> Args

quickcheck config

-> a

quickcheck property

-> Test 

turns the quickcheck test into an hunit test

Use this if you want to provide a custom Config instead of defaultConfig.