-module TestSuite
+module Main
where
import Data.Monoid (mempty)
import Test.Framework.Options
import Test.Framework.Runners.Options
import Test.Framework.Providers.API (TestName)
-import Test.Framework.Providers.DocTest
import Test.Framework.Providers.HUnit (testCase)
import Test.Framework.Providers.QuickCheck2 (testProperty)
import Test.HUnit
main :: IO ()
main = do
- dt <- docTest ["src/Everything.hs"] ["-isrc"]
-
let empty_test_opts = mempty :: TestOptions
let my_test_opts = empty_test_opts {
topt_maximum_generated_tests = Just 500
ropt_test_options = Just my_test_opts
}
- defaultMainWithOpts ([dt] ++ tests) my_runner_opts
-
-
--- | Defined so that my test names fit on one line.
-tc :: Test.Framework.Providers.API.TestName -> Test.HUnit.Assertion -> Test.Framework.Test
-tc = testCase
-
-
--- | Defined so that my test names fit on one line.
-tp :: Test.QuickCheck.Testable a => Test.Framework.TestName -> a -> Test.Framework.Test
-tp = testProperty
+ defaultMainWithOpts tests my_runner_opts
tests :: [Test.Framework.Test]
tetrahedron_tests,
cube_properties,
tetrahedron_properties,
- misc_properties,
+ misc_properties,
cardinal_properties,
slow_tests ]