dwergaz-0.3.0.0: A minimal testing library
Copyright(c) 2017-2024 Henry Till
LicenseISC
Maintainerhenrytill@gmail.com
Stabilityexperimental
Safe HaskellSafe-Inferred
LanguageHaskell98

Test.Dwergaz

Description

Usage:

See the tests for a usage example.

Documentation

data Test Source #

Constructors

forall a b.(Show a, Show b) => Expect 

Fields

  • String

    Test description

  • (a -> b -> Bool)

    Test function

  • a

    Expected value

  • b

    Actual value

Predicate 

Fields

assertFailure Source #

Arguments

:: String

Test description

-> Test 

assertBool Source #

Arguments

:: String

Test description

-> Bool

Condition to test

-> Test 

assertEqual Source #

Arguments

:: (Eq a, Show a) 
=> String

Test description

-> a

Expected value

-> a

Actual value

-> Test