forked from jaspervdj/hakyll
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test-framework is fixed again, so we use it again.
- Loading branch information
Showing
4 changed files
with
46 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,12 @@ | ||
module Main where | ||
|
||
import Control.Monad (mapM_) | ||
import Test.QuickCheck | ||
import Test.Framework (defaultMain, testGroup) | ||
import Test.Framework.Providers.HUnit | ||
import Test.Framework.Providers.QuickCheck2 | ||
|
||
import Template | ||
import Util | ||
|
||
main = do | ||
runTests "Template" $ do | ||
quickCheck prop_template_encode_id | ||
quickCheck prop_substitute_id | ||
quickCheck prop_substitute_case1 | ||
|
||
runTests "Util" $ do | ||
quickCheck prop_trim_length | ||
quickCheck prop_trim_id | ||
quickCheck prop_stripHTML_length | ||
quickCheck prop_stripHTML_id | ||
|
||
where | ||
runTests name action = do putStrLn name | ||
action | ||
main = defaultMain [ templateGroup | ||
, utilGroup | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters