|
|
|
| Description |
| This module abstracts the differences between implementations of
Haskell (e.g., GHC, Hugs, and NHC).
|
|
| Synopsis |
|
|
|
| Documentation |
|
| type Assertion = IO () |
When an assertion is evaluated, it will output a message if and only if the
assertion fails.
Test cases are composed of a sequence of one or more assertions.
|
|
| assertFailure |
| :: String | A message that is displayed with the assertion failure
| | -> Assertion | | Unconditionally signals that a failure has occured. All
other assertions can be expressed with the form:
if conditionIsMet
then IO ()
else assertFailure msg
|
|
|
| performTestCase |
| :: Assertion | an 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 2.7.2 |