HORIZON HASKELLDocslts/ghc-9.10.x248f8f02026-10-05Search names, modules, packages, or :: a typeCtrl K

GHC 9.10.3 · lts/ghc-9.10.x · 248f8f0 · 2026-10-05

Modulesydtest-0.22.0.0Haskell2010

Test.Syd.Def.Scenario

  • 2 values
  • Packagesydtest-0.22.0.0
  • Exports2
  • LanguageHaskell2010
  • LicenceLicenseRef-OtherLicense
  • SourceScenario.hs
valuescenarioDir
  1. :: FilePath
  2. -> FilePath -> TestDefM outers inner ()
  3. -> TestDefM outers inner ()
#

Define a test for each file in the given directory.

Example:

  scenarioDir "test_resources/even" $ \fp ->
    it "contains an even number" $ do
      s <- readFile fp
      n <- readIO s
      (n :: Int) `shouldSatisfy` even
valuescenarioDirRecur
  1. :: FilePath
  2. -> FilePath -> TestDefM outers inner ()
  3. -> TestDefM outers inner ()
#

Define a test for each file in the given directory, recursively.

Example:

  scenarioDirRecur "test_resources/odd" $ \fp ->
    it "contains an odd number" $ do
      s <- readFile fp
      n <- readIO s
      (n :: Int) `shouldSatisfy` odd