Safe Haskell | None |
---|---|
Language | Haskell2010 |
- 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.
Asserts that the specified condition holds.
:: (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.
Signals an assertion failure if *no* exception is raised.