Test.Simple
Description
Spoon's test utility! Simple testing for spoons.
- test_all :: (ErrorReport a, Show b) => String -> (FilePath -> String -> Either a b) -> IO ()
- test :: (ErrorReport a, Show b) => String -> (FilePath -> String -> Either a b) -> Bool -> FilePath -> IO ()
- test_all_IO :: (ErrorReport a, Show b) => String -> (FilePath -> String -> IO (Either a b)) -> IO ()
- test_IO :: (ErrorReport a, Show b) => String -> (FilePath -> String -> IO (Either a b)) -> Bool -> FilePath -> IO ()
Documentation
Arguments
| :: (ErrorReport a, Show b) | |
| => String | The name of the testing process |
| -> (FilePath -> String -> Either a b) | The test |
| -> IO () |
Test all source files in a stage of the testing process.
Arguments
| :: (ErrorReport a, Show b) | |
| => String | The name of the testing process |
| -> (FilePath -> String -> Either a b) | The test |
| -> Bool | Whether the test is to succeed or to fail. |
| -> FilePath | The file we are to test. The file must be in the current directory/name of testing process |
| -> IO () | Run the test |
Test a source file.
Arguments
| :: (ErrorReport a, Show b) | |
| => String | The name of the testing process |
| -> (FilePath -> String -> IO (Either a b)) | The test |
| -> IO () |
Test all source files in a stage of the testing process.
Arguments
| :: (ErrorReport a, Show b) | |
| => String | The name of the testing process |
| -> (FilePath -> String -> IO (Either a b)) | The test |
| -> Bool | Whether the test is to succeed or to fail. |
| -> FilePath | The file we are to test. The file must be in the current directory/name of testing process |
| -> IO () | Run the test |
Test a source file.