2024-11-12 11:32:05 -08:00
|
|
|
module Main where
|
|
|
|
|
|
|
|
|
|
import qualified ExprTests as E
|
2024-11-14 19:56:33 -08:00
|
|
|
import qualified ParserTests as P
|
2024-11-12 11:32:05 -08:00
|
|
|
import qualified System.Exit as Exit
|
|
|
|
|
import Test.HUnit
|
|
|
|
|
|
|
|
|
|
tests :: Test
|
2024-11-14 19:56:33 -08:00
|
|
|
tests = TestList [ TestLabel "ExprTests" E.tests
|
|
|
|
|
, TestLabel "ParserTests" P.tests]
|
2024-11-12 11:32:05 -08:00
|
|
|
|
|
|
|
|
main :: IO ()
|
|
|
|
|
main = do
|
|
|
|
|
result <- runTestTT tests
|
|
|
|
|
if failures result > 0 then Exit.exitFailure else Exit.exitSuccess
|