test-sandbox-hunit-0.1.0: HUnit convenience functions for use with test-sandbox

Safe HaskellNone
LanguageHaskell2010

Test.Sandbox.HUnit

Synopsis

Documentation

assertFailure Source

Arguments

:: String

A message that is displayed with the assertion failure

-> Sandbox () 

Unconditionally signals that a failure has occured.

assertBool Source

Arguments

:: String

The message that is displayed if the assertion fails

-> Bool

The condition

-> Sandbox () 

Asserts that the specified condition holds.

assertEqual Source

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.

assertString Source

Arguments

:: String

The message that is displayed with the assertion failure

-> Sandbox () 

Signals an assertion failure if a non-empty message (i.e., a message other than "") is passed.

assertException Source

Arguments

:: String

The message that is displayed with the assertion failure

-> Sandbox a 
-> Sandbox () 

Signals an assertion failure if *no* exception is raised.