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

GHC 10.0.0.20260917 · lts/ghc-10.0.x · fc4e598 · 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