perga/tests/Tests.hs

19 lines
392 B
Haskell
Raw Normal View History

module Main where
2024-11-14 22:01:53 -08:00
import qualified CheckTests as C
import qualified ExprTests as E
import qualified System.Exit as Exit
import Test.HUnit
tests :: Test
2024-11-14 22:01:53 -08:00
tests =
TestList
[ TestLabel "ExprTests" E.tests
, TestLabel "CheckTests" C.tests
]
main :: IO ()
main = do
result <- runTestTT tests
if failures result > 0 then Exit.exitFailure else Exit.exitSuccess