UMinho Haskell Libraries (1.0)ContentsIndex
Debug.HUnitExtras
Portability portable
Stability experimental
Maintainer joost.visser@di.uminho.pt
Description
Some utility functions for unit testing.
Synopsis
runTestsTT :: [Test] -> IO Counts
labeledTest :: String -> Assertion -> Test
testSuite :: String -> [Test] -> Test
parseString :: ATermConvertible a => String -> String -> String -> IO a
viaTmpFile :: String -> (FilePath -> IO a) -> IO a
Documentation
runTestsTT :: [Test] -> IO Counts
Run a list of tests.
labeledTest :: String -> Assertion -> Test
Create a labeled test.
testSuite :: String -> [Test] -> Test
Represent a test-suite
parseString :: ATermConvertible a => String -> String -> String -> IO a
Parses a string with sglr. It requires a string to parse, a start symbol of the grammar, and a string with the parse table path.
viaTmpFile :: String -> (FilePath -> IO a) -> IO a
Perform given IO action after creating a temporary file with the given string as content
Produced by Haddock version 0.6