2016-03-31 16:45:55 +03:00
|
|
|
module Examples where
|
|
|
|
|
|
|
|
import Test.Framework (Test, testGroup)
|
|
|
|
|
|
|
|
import qualified Examples.AutoUpdate as A
|
|
|
|
import qualified Examples.ClassLaws as C
|
|
|
|
import qualified Examples.Logger as L
|
|
|
|
import qualified Examples.Philosophers as P
|
2016-03-31 17:08:37 +03:00
|
|
|
import qualified Examples.SearchParty as S
|
2016-03-31 16:45:55 +03:00
|
|
|
|
|
|
|
-- | Run all the example tests.
|
|
|
|
testExamples :: [Test]
|
|
|
|
testExamples = map (uncurry testGroup)
|
|
|
|
[ ("auto-update", A.tests)
|
|
|
|
, ("Class Laws", C.tests)
|
|
|
|
, ("Dining Philosophers", P.tests)
|
|
|
|
, ("Message Logger", L.tests)
|
2016-03-31 17:08:37 +03:00
|
|
|
, ("Search Party", S.tests)
|
2016-03-31 16:45:55 +03:00
|
|
|
]
|