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

Safe HaskellNone

Test.Sandbox.HUnit

Synopsis

Documentation

assertFailureSource

Arguments

:: String

A message that is displayed with the assertion failure

-> Sandbox () 

Unconditionally signals that a failure has occured.

assertBoolSource

Arguments

:: String

The message that is displayed if the assertion fails

-> Bool

The condition

-> Sandbox () 

Asserts that the specified condition holds.

assertEqualSource

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.

assertStringSource

Arguments

:: String

The message that is displayed with the assertion failure

-> Sandbox () 

assertExceptionSource

Arguments

:: String

The message that is displayed with the assertion failure

-> Sandbox a 
-> Sandbox () 

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