MissingH-1.0.2.1: Large utility librarySource codeContentsIndex
Test.HUnit.Utils
Portabilityportable
Stabilityprovisional
MaintainerJohn Goerzen <jgoerzen@complete.org>
Description

Utilities for HUnit unit testing.

Written by John Goerzen, jgoerzen@complete.org

Synopsis
assertRaises :: Show a => String -> Exception -> IO a -> IO ()
mapassertEqual :: (Show b, Eq b) => String -> (a -> b) -> [(a, b)] -> [Test]
qccheck :: Testable a => Config -> String -> a -> Test
qctest :: Testable a => String -> a -> Test
Documentation
assertRaises :: Show a => String -> Exception -> IO a -> IO ()Source
Asserts that a specific exception is raised by a given action.
mapassertEqual :: (Show b, Eq b) => String -> (a -> b) -> [(a, b)] -> [Test]Source
qccheckSource
:: Testable a
=> Configlabel for the property
-> Stringquickcheck property
-> a
-> Test
qccheck turns the quickcheck test into an hunit test
qctest :: Testable a => String -> a -> TestSource
qctest is equivalent to 'qccheck defaultConfig'
Produced by Haddock version 2.6.0