Safe Haskell | None |
---|
- 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 *no* exception is raised.