assert4hs-core-0.1.0: A set of assertion for writing more readable tests cases
Safe HaskellSafe-Inferred
LanguageHaskell2010
Extensions
  • BangPatterns
  • OverloadedStrings

Test.Fluent.Assertions.Core

Synopsis

Assertion util functions

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

Execute assertions against given subject under test.

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

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

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

A variant of assertThat which allow to pass additional configuration.

assertThatIO' :: HasCallStack => AssertionConfig -> IO a -> Assertion' a c -> 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 #

Module : Test.Fluent.Assertions.Core Description : Set util function to execute assertions against given value Copyright : (c) Pawel Nosal, 2021 License : MIT Maintainer : p.nosal1986@gmail.com Stability : experimental

Verify if given IO action throws expected exception.