quickcheck-simple-0.1.1.0: Test properties and default-mains for QuickCheck

Copyright2015-2019 Kei Hibino
LicenseBSD3
Maintainerex8k.hibino@gmail.com
Stabilityexperimental
Portabilityunknown
Safe HaskellSafe
LanguageHaskell2010

Test.QuickCheck.Simple

Description

This module contains definitions of test properties and default-mains using QuickCheck library.

Synopsis

Documentation

data Property Source #

Property type. Property or Testable of QuickCheck.

boolTest' :: String -> String -> Bool -> Test Source #

Property specialized property with message for False case

boolTest :: String -> Bool -> Test Source #

Property specialized property

eqTest' :: (a -> a -> Bool) -> (a -> String) -> String -> a -> a -> Test Source #

Eq specialized property with explicit passing

eqTest :: (Eq a, Show a) => String -> a -> a -> Test Source #

Eq specialized property

qcTest :: Testable prop => String -> prop -> Test Source #

QuickCheck Testable property

type Test = (String, Property) Source #

Property with label string

data TestError Source #

Test failure result.

Constructors

BFalse (Maybe String) 
QCError Result 
Instances
Show TestError Source # 
Instance details

Defined in Test.QuickCheck.Simple

runTest_ Source #

Arguments

:: Bool

verbose flag

-> Test

property to test

-> IO (Maybe TestError)

result action, and may be failure result

Run a single test suite.

runTest Source #

Arguments

:: Test

property to test

-> IO (Maybe TestError)

result action, and may be failure result

Not verbose version of runTest_

defaultMain_ :: Bool -> [Test] -> IO () Source #

Default main to run test suites.

defaultMain :: [Test] -> IO () Source #

Not verbose version of defaultMain'.

verboseMain :: [Test] -> IO () Source #

Verbose verison of defaultMain

defaultMain' :: Bool -> [Test] -> IO () Source #

Deprecated: Use defaultMain_ instead of this.