git @ Cat's Eye Technologies Falderal / 9847034
Handle error expectations in shell format, in a fudge-y way. catseye 13 years ago
1 changed file(s) with 3 addition(s) and 1 deletion(s). Raw diff Collapse all Expand all
4242
4343 formatBlocks (test@(Test (ShellTest cmd) desc input expectation):rest) =
4444 let
45 Output expected = expectation
45 expected = case expectation of
46 Output e -> e
47 Exception e -> e -- XXX should we expect this on stderr?
4648 inputHereDoc = hereDoc "input.txt" input
4749 expectedHereDoc = hereDoc "expected.txt" expected
4850 hereDocs = inputHereDoc ++ expectedHereDoc