-- License: BSD3 (see LICENSE) -- Author: Dino Morelli import System.Exit import Test.HUnit hiding ( counts ) import qualified Except import qualified MonadOr main :: IO () main = do counts <- runTestTT tests exit $ testsPassed counts exit :: Bool -> IO () exit True = exitWith ExitSuccess exit False = exitWith $ ExitFailure 1 testsPassed :: Counts -> Bool testsPassed (Counts _ _ e f) = (e == 0) && (f == 0) tests :: Test tests = TestList [ Except.tests , MonadOr.tests ]