Safe Haskell | Safe |
---|---|
Language | Haskell2010 |
- testName :: Test -> String
- flattenTests :: Test -> [Test]
- filterTests :: (Test -> Bool) -> Test -> Test
- is :: (Eq a, Show a) => a -> a -> Assertion
- assertParse :: Either ParseError a -> Assertion
- assertParseFailure :: Either ParseError a -> Assertion
- assertParseEqual :: (Show a, Eq a) => Either ParseError a -> a -> Assertion
- printParseError :: Show a => a -> IO ()
Documentation
flattenTests :: Test -> [Test] Source
Flatten a Test containing TestLists into a list of single tests.
filterTests :: (Test -> Bool) -> Test -> Test Source
Filter TestLists in a Test, recursively, preserving the structure.
is :: (Eq a, Show a) => a -> a -> Assertion Source
Simple way to assert something is some expected value, with no label.
assertParse :: Either ParseError a -> Assertion Source
Assert a parse result is successful, printing the parse error on failure.
assertParseFailure :: Either ParseError a -> Assertion Source
Assert a parse result is successful, printing the parse error on failure.
assertParseEqual :: (Show a, Eq a) => Either ParseError a -> a -> Assertion Source
Assert a parse result is some expected value, printing the parse error on failure.
printParseError :: Show a => a -> IO () Source