assert4hs-hspec-0.1.0: integration point of assert4hs and hspec
Copyright(c) Pawel Nosal 2021
LicenseMIT
Maintainerp.nosal1986@gmail.com
Stabilityexperimental
Safe HaskellSafe-Inferred
LanguageHaskell2010

Test.Fluent.Hspec

Description

 
Synopsis

Assertion util functions for HSpec

assertThat :: HasCallStack => a -> Assertion' a b -> IO () Source #

Execute assertions against given subject under test.

assertThat' :: HasCallStack => AssertionConfig -> a -> Assertion' a b -> IO () Source #

A variant of assertThat which allow to pass additional configuration.

assertThatIO :: HasCallStack => IO a -> Assertion' a b -> IO () Source #

Execute assertions against given subject under test extracted from IO action.

assertThatIO' :: HasCallStack => AssertionConfig -> IO a -> Assertion' a b -> IO () Source #

A variant of assertThatIO which allow to pass additional configuration.

assertThrown :: (HasCallStack, Exception e) => IO a -> ExceptionSelector e -> Assertion' e b -> IO () Source #

Execute assertions against selected exception

assertThrows :: (HasCallStack, Exception e) => IO a -> ExceptionSelector e -> IO () Source #

Verify if given IO action throws expected exception.