diff options
author | Jasper Van der Jeugt <jaspervdj@gmail.com> | 2010-01-24 22:00:51 +0100 |
---|---|---|
committer | Jasper Van der Jeugt <jaspervdj@gmail.com> | 2010-01-24 22:00:51 +0100 |
commit | 7a75e1f4814a36f57558f59d11e5b7b948e03ed5 (patch) | |
tree | 40fad5ed9ba4da9f3aff1590d5400c3f41b130f7 /tests/Util.hs | |
parent | 81e3df1e11481f20294fcc8bc96418e40402c6ba (diff) | |
download | hakyll-7a75e1f4814a36f57558f59d11e5b7b948e03ed5.tar.gz |
test-framework is fixed again, so we use it again.
Diffstat (limited to 'tests/Util.hs')
-rw-r--r-- | tests/Util.hs | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/tests/Util.hs b/tests/Util.hs index 9e2a0dd..087edbd 100644 --- a/tests/Util.hs +++ b/tests/Util.hs @@ -1,11 +1,24 @@ -module Util where +module Util + ( utilGroup + ) where import Data.Char import Test.QuickCheck +import Test.Framework (testGroup) +import Test.Framework.Providers.HUnit +import Test.Framework.Providers.QuickCheck2 import Text.Hakyll.Util +-- Util test group. +utilGroup = testGroup "Util" + [ testProperty "prop_trim_length" prop_trim_length + , testProperty "prop_trim_id" prop_trim_id + , testProperty "prop_stripHTML_length" prop_stripHTML_length + , testProperty "prop_stripHTML_id" prop_stripHTML_id + ] + -- Test that a string always becomes shorter when trimmed. prop_trim_length str = length str >= length (trim str) |