HORIZON HASKELLDocslts/ghc-10.0.x8fef28d2026-11-02Search packagesCtrl K
Theme: |

GHC 10.0.0.20260917 · lts/ghc-10.0.x · 8fef28d · 2026-11-02

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