integration-0.1.0
Safe HaskellSafe-Inferred
LanguageGHC2021

Testlib.Assertions

Synopsis

Documentation

shouldMatch Source #

Arguments

:: (MakesValue a, MakesValue b, HasCallStack) 
=> a

The actual value

-> b

The expected value

-> App () 

shouldMatchWithMsg Source #

Arguments

:: (MakesValue a, MakesValue b, HasCallStack) 
=> Maybe String

Message to be added to failure report

-> a

The actual value

-> b

The expected value

-> App () 

data LenientMatchRule Source #

Instances

Instances details
Bounded LenientMatchRule Source # 
Instance details

Defined in Testlib.Assertions

Enum LenientMatchRule Source # 
Instance details

Defined in Testlib.Assertions

Show LenientMatchRule Source # 
Instance details

Defined in Testlib.Assertions

Eq LenientMatchRule Source # 
Instance details

Defined in Testlib.Assertions

Ord LenientMatchRule Source # 
Instance details

Defined in Testlib.Assertions

shouldMatchBase64 Source #

Arguments

:: (MakesValue a, MakesValue b, HasCallStack) 
=> a

The actual value, in base64

-> b

The expected value, in plain text

-> App () 

shouldNotMatch Source #

Arguments

:: (MakesValue a, MakesValue b, HasCallStack) 
=> a

The actual value

-> b

The un-expected value

-> App () 

shouldMatchInt Source #

Arguments

:: (MakesValue a, HasCallStack) 
=> a

The actual value

-> Int

The expected value

-> App () 

Specialized variant of shouldMatch to avoid the need for type annotations.

shouldNotMatchInt Source #

Arguments

:: (MakesValue a, HasCallStack) 
=> a

The actual value

-> Int

The expected value

-> App () 

shouldMatchRange Source #

Arguments

:: (MakesValue a, HasCallStack) 
=> a

The actual value

-> (Int, Int)

The expected range, inclusive both sides

-> App () 

shouldContainString Source #

Arguments

:: HasCallStack 
=> String

The actual value

-> String

The expected value

-> App () 

shouldContain Source #

Arguments

:: (Eq a, Show a, HasCallStack) 
=> [a]

The actual value

-> [a]

The expected value

-> App ()