ContentsIndex
Test.HUnit.Lang
Description
HUnit language support.
Synopsis
type Assertion = IO ()
assertFailure :: String -> Assertion
performTestCase :: Assertion -> IO (Maybe (Bool, String))
Documentation
type Assertion = IO ()
An assertion is an IO computation with trivial result. An assertion or a sequence of assertions makes up a test case.
assertFailure
:: Stringa message that is displayed with the assertion failure
-> Assertion
signals an assertion failure with a given message.
performTestCase
:: Assertionan assertion to be made during the test case run
-> IO (Maybe (Bool, String))

performs a single test case. The meaning of the result is as follows:

Nothing
test case success
Just (True, msg)
test case failure with the given message
Just (False, msg)
test case error with the given message
Produced by Haddock version 0.8