Fixed a bug so that tocktest now defaults to running a medium level of quickcheck tests

This commit is contained in:
Neil Brown 2008-01-23 14:32:13 +00:00
parent 6f4146a4f3
commit 4c176a1a0f

View File

@ -95,6 +95,7 @@ main = do (opts, nonOpts, errs) <- getArgs >>* getOpt RequireOrder options
findLevel :: [TestOption] -> Either String (Maybe QuickCheckLevel)
findLevel (QC qc:_) = qc
findLevel (_:os) = findLevel os
findLevel [] = Right $ Just QC_Medium
findType :: [TestOption] -> Maybe Bool
findType (OutputType t:_) = Just t