summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorJasper Van der Jeugt <jaspervdj@gmail.com>2010-01-10 19:17:18 +0100
committerJasper Van der Jeugt <jaspervdj@gmail.com>2010-01-10 19:17:18 +0100
commit6bcad2701a49ae422144111276b2815eb35311a4 (patch)
treee3f3d0b7f2a1f39fbe5c7d836083ad52ac89a365 /tests
parent6a2e6998b125024e9260d26819c262e0e7d22c8d (diff)
downloadhakyll-6bcad2701a49ae422144111276b2815eb35311a4.tar.gz
Added custom Template system. Highly experimental.
Diffstat (limited to 'tests')
-rw-r--r--tests/Tests.hs10
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/Tests.hs b/tests/Tests.hs
index 38b072a..4ee84f7 100644
--- a/tests/Tests.hs
+++ b/tests/Tests.hs
@@ -26,8 +26,8 @@ tests = [ testGroup "Util group" [ testProperty "trim length" prop_trim_length
, testCase "link 2" test_link2
]
- , testGroup "Regex group" [ testCase "split 1" test_split1
- , testCase "split 2" test_split2
+ , testGroup "Regex group" [ testCase "splitRegex 1" test_split_regex1
+ , testCase "splitRegex 2" test_split_regex2
]
, testGroup "CompressCSS group" [ testProperty "compressCSS length" prop_compress_css_length
@@ -71,9 +71,9 @@ test_strip_html3 = stripHTML "<b>Hakyll</b> is an <i>awesome</i> web framework <
test_link1 = link "foo bar" "/foo/bar.html" @?= "<a href=\"/foo/bar.html\">foo bar</a>"
test_link2 = link "back home" "/" @?= "<a href=\"/\">back home</a>"
--- Split test cases.
-test_split1 = split "," "1,2,3" @?= ["1", "2", "3"]
-test_split2 = split "," ",1,2," @?= ["1", "2"]
+-- Split Regex test cases.
+test_split_regex1 = split "," "1,2,3" @?= ["1", "2", "3"]
+test_split_regex2 = split "," ",1,2," @?= ["1", "2"]
-- CSS compression should always decrease the text length.
prop_compress_css_length str = length str >= length (compressCSS str)