-- Hoogle documentation, generated by Haddock -- See Hoogle, http://www.haskell.org/hoogle/ -- | Test Utililty Pack for HUnit and QuickCheck -- -- Haskell Test Utility Pack for HUnit and QuickCheck testpack provides -- utilities for both HUnit and QuickCheck. These include tools for -- running QuickCheck properties as HUnit test cases, allowing you to -- combine both approaches in a single program. It also includes tools -- for more helpful displays of running progress in both HUnit and -- QuickCheck, additional generators for other types for QuickCheck, and -- shortcuts for quickly defining new test cases. @package testpack @version 2.1.1 -- | Provides Arbitrary instances for: -- --
-- test1 = TestCase ("x" @=? "x")
--
-- alltests = [TestLabel "test1" test1,
-- tl "TestNum" TestNum.allt,
-- tl "TestMap" TestMap.allt,
-- tl "TestTime" TestTime.allt]
--
-- main = do runVerboseTests (TestList alltests)
-- return ()
--
runVerboseTests :: Test -> IO (Counts, Int)
-- | qccheck turns the quickcheck test into an hunit test
qccheck :: Testable a => Args -> String -> a -> Test
-- | qctest is equivalent to 'qccheck stdArgs'
qctest :: Testable a => String -> a -> Test
-- | Convert QuickCheck tests to HUnit, with a configurable maximum test
-- count. Often used like this:
--
-- -- q :: QC.Testable a => String -> a -> HU.Test -- q = qc2hu 250 -- -- allt = [q "Int -> Integer" prop_int_to_integer, -- q "Integer -> Int (safe bounds)" prop_integer_to_int_pass] --qc2hu :: Testable a => Int -> String -> a -> Test -- | Label the tests list. See example under runVerboseTests. tl :: String -> [Test] -> Test