Carp/test/Spec.hs

16 lines
388 B
Haskell
Raw Permalink Normal View History

module Main where
import Test.HUnit
import TestConstraints
import TestLookup
2017-06-26 12:15:03 +03:00
main :: IO ()
main = do
_ <- runTestTT (groupTests "Constraints" testConstraints)
_ <- runTestTT (groupTests "Lookup" testLookup)
return ()
2017-06-26 12:15:03 +03:00
groupTests :: String -> [Test] -> Test
groupTests label testCases =
TestList (zipWith TestLabel (map ((\s -> label ++ " Test " ++ s) . show) [1 ..]) testCases)