summaryrefslogtreecommitdiff
path: root/tests/Main.hs
diff options
context:
space:
mode:
authorJasper Van der Jeugt <jaspervdj@gmail.com>2010-01-24 19:00:49 +0100
committerJasper Van der Jeugt <jaspervdj@gmail.com>2010-01-24 19:00:49 +0100
commitd97a53b6b490bc997cfee6d2f16ab7cba9499347 (patch)
tree24c6845c9b3f1e12a35a330025bcf5889a969efb /tests/Main.hs
parent42bacee41a68e9e1eaddcec0702ead71a0a1b3e6 (diff)
downloadhakyll-d97a53b6b490bc997cfee6d2f16ab7cba9499347.tar.gz
Changed test system. Wrote some test cases.
Diffstat (limited to 'tests/Main.hs')
-rw-r--r--tests/Main.hs23
1 files changed, 23 insertions, 0 deletions
diff --git a/tests/Main.hs b/tests/Main.hs
new file mode 100644
index 0000000..3654340
--- /dev/null
+++ b/tests/Main.hs
@@ -0,0 +1,23 @@
+module Main where
+
+import Control.Monad (mapM_)
+import Test.QuickCheck
+
+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