HORIZON HASKELLDocslts/ghc-9.14.x7a6c33e2026-10-12Search packagesCtrl K
Theme: |

GHC 9.14.1 · lts/ghc-9.14.x · 7a6c33e · 2026-10-12

Modulesandwich-0.3.1.0Haskell2010

Test.Sandwich.Expectations

Functions for making assertions about test behavior.

Contents
  1. Manually fail a test or mark as pending
  2. Expecting failures
  3. Assertions
Synopsis
  • Packagesandwich-0.3.1.0
  • Exports20
  • LanguageHaskell2010
  • LicenceBSD-3-Clause
  • SourceExpectations.hs

Manually fail a test or mark as pending

Expecting failures

valueshouldThrow
  1. :: (HasCallStack, MonadUnliftIO m, Exception e)
  2. => m a

    The action to run.

  3. -> (e -> Bool)

    A predicate on the exception to determine if it's as expected.

  4. -> m ()

Asserts that an action should throw an exception. Accepts a predicate to determine if the exception matches.

Assertions