| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Test.Sandbox.HUnit
Synopsis
- assertFailure :: String -> Sandbox ()
- assertBool :: String -> Bool -> Sandbox ()
- assertEqual :: (Eq a, Show a) => String -> a -> a -> Sandbox ()
- assertString :: String -> Sandbox ()
- assertException :: String -> Sandbox a -> Sandbox ()
Documentation
Unconditionally signals that a failure has occured.
Arguments
| :: String | The message that is displayed if the assertion fails |
| -> Bool | The condition |
| -> Sandbox () |
Asserts that the specified condition holds.
Arguments
| :: (Eq a, Show a) | |
| => String | The message prefix |
| -> a | The expected value |
| -> a | The actual value |
| -> Sandbox () |
Asserts that the specified actual value is equal to the expected value.
Signals an assertion failure if a non-empty message (i.e., a message other than "") is passed.