HORIZON HASKELLDocslts/ghc-9.14.x45dd5372026-10-11Search names, modules, packages, or :: a typeCtrl K

GHC 9.14.1 · lts/ghc-9.14.x · 45dd537 · 2026-10-11

Modulesandwich-0.3.1.0Haskell2010

Test.Sandwich.Expectations

Functions for making assertions about test behavior.

  • 20 values
  • Packagesandwich-0.3.1.0
  • Exports20
  • LanguageHaskell2010
  • LicenceBSD-3-Clause
  • SourceExpectations.hs

Manually fail a test or mark as pending

4 declarations

Expecting failures

3 declarations
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

13 declarations