exit nonzero when there were failure, not just errors
ya, I need a test suite for my test suite
This commit is contained in:
parent
bb8e3c5b6d
commit
948691e893
1 changed files with 2 additions and 2 deletions
4
test.hs
4
test.hs
|
@ -64,8 +64,8 @@ main = do
|
||||||
propigate r
|
propigate r
|
||||||
|
|
||||||
propigate :: (Counts, Int) -> IO ()
|
propigate :: (Counts, Int) -> IO ()
|
||||||
propigate (Counts { errors = e }, _)
|
propigate (Counts { errors = e , failures = f }, _)
|
||||||
| e > 0 = error "failed"
|
| e+f > 0 = error "failed"
|
||||||
| otherwise = return ()
|
| otherwise = return ()
|
||||||
|
|
||||||
quickcheck :: Test
|
quickcheck :: Test
|
||||||
|
|
Loading…
Reference in a new issue