module AutoTest(
module AutoTest,
module Test.QuickCheck,
module Data.List
) where
import Test.QuickCheck hiding ((==>))
import Data.Char
import System.Random
import Data.List
import Control.Monad
infixr 0 ==>
a ==> b = not a || b
constTest :: Bool -> IO ()
constTest True = return ()
constTest False = error "Failed on constTest"
data QFilePath = QFilePath FilePath
deriving Show
instance Arbitrary QFilePath where
arbitrary = liftM QFilePath arbitrary
quickSafe :: Testable a => a -> IO ()
quickSafe prop = quickCheckWith (stdArgs { chatty = False }) prop