Safe Haskell | Safe |
---|---|
Language | Haskell2010 |
Test.Common
Documentation
checkDefinesFail :: TypeResolver r => r -> [(String, [String])] -> String -> CompileInfo () Source #
checkDefinesSuccess :: TypeResolver r => r -> [(String, [String])] -> String -> CompileInfo () Source #
checkEquals :: (Eq a, Show a, MergeableM m, CompileErrorM m) => a -> a -> m () Source #
checkTypeFail :: TypeResolver r => r -> [(String, [String])] -> String -> CompileInfo () Source #
checkTypeSuccess :: TypeResolver r => r -> [(String, [String])] -> String -> CompileInfo () Source #
containsAtLeast :: (Ord a, Show a, MergeableM m, CompileErrorM m) => [a] -> [a] -> m () Source #
containsAtMost :: (Ord a, Show a, MergeableM m, CompileErrorM m) => [a] -> [a] -> m () Source #
containsExactly :: (Ord a, Show a, MergeableM m, CompileErrorM m) => [a] -> [a] -> m () Source #
containsNoDuplicates :: (Ord a, Show a, MergeableM m, CompileErrorM m) => [a] -> m () Source #
forceParse :: ParseFromSource a => String -> a Source #
parseFilterMap :: CompileErrorM m => [(String, [String])] -> m ParamFilters Source #
parseTheTest :: (ParseFromSource a, CompileErrorM m) => [(String, [String])] -> [String] -> m ([a], ParamFilters) Source #
readMulti :: CompileErrorM m => ParseFromSource a => String -> String -> m [a] Source #
readSingle :: (ParseFromSource a, CompileErrorM m) => String -> String -> m a Source #
readSingleWith :: CompileErrorM m => Parser a -> String -> String -> m a Source #
runAllTests :: [IO (CompileInfo ())] -> IO () Source #