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 () 

shouldEventuallyMatch :: (MakesValue a, MakesValue b, HasCallStack) => a -> b -> App () Source #

Retries every 100ms until timeOutSeconds from Env is reached

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 () 

shouldMatchSet :: (MakesValue a, MakesValue b, HasCallStack) => a -> b -> App () Source #

Match on sorted lists (sets where elements may occur more than once). (Maybe this should be called shouldMatchMultiSet?)

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 ()