@@ -16,11 +16,11 @@ import Text.Hakyll.Util
16utilGroup = testGroup "Util"
16utilGroup = testGroup "Util"
17 [ testProperty "prop_trim_length" prop_trim_length
17 [ testProperty "prop_trim_length" prop_trim_length
18 , testProperty "prop_trim_id" prop_trim_id
18 , testProperty "prop_trim_id" prop_trim_id
19− , testProperty "prop_stripHTML_length" prop_stripHTML_length
19+ , testProperty "prop_stripHtml_length" prop_stripHtml_length
20− , testProperty "prop_stripHTML_id" prop_stripHTML_id
20+ , testProperty "prop_stripHtml_id" prop_stripHtml_id
21− , testCase "test_stripHTML_1" test_stripHTML_1
21+ , testCase "test_stripHtml_1" test_stripHtml_1
22− , testCase "test_stripHTML_2" test_stripHTML_2
22+ , testCase "test_stripHtml_2" test_stripHtml_2
23− , testCase "test_stripHTML_3" test_stripHTML_3
23+ , testCase "test_stripHtml_3" test_stripHtml_3
24 , testCase "test_link_1" test_link_1
24 , testCase "test_link_1" test_link_1
25 , testCase "test_link_2" test_link_2
25 , testCase "test_link_2" test_link_2
@@ -35,17 +35,17 @@ prop_trim_id str = (not $ null str) && isAlreadyTrimmed ==> str == (trim str)
35 isAlreadyTrimmed = (not $ isSpace $ head str) && (not $ isSpace $ last str)
35 isAlreadyTrimmed = (not $ isSpace $ head str) && (not $ isSpace $ last str)
37-- Check that a stripped string is shorter.
37-- Check that a stripped string is shorter.
38−prop_stripHTML_length str = length str >= length (stripHTML str)
38+prop_stripHtml_length str = length str >= length (stripHtml str)
40-- Check that strings without tags remain untouched.
40-- Check that strings without tags remain untouched.
41−prop_stripHTML_id str = (not $ any (`elem` ['>', '<']) str)
41+prop_stripHtml_id str = (not $ any (`elem` ['>', '<']) str)
42− ==> str == stripHTML str
42+ ==> str == stripHtml str
44−-- Strip HTML test cases.
44+-- Strip Html test cases.
45−test_stripHTML_1 = stripHTML "<b>text</b>" @?= "text"
45+test_stripHtml_1 = stripHtml "<b>text</b>" @?= "text"
46−test_stripHTML_2 = stripHTML "text" @?= "text"
46+test_stripHtml_2 = stripHtml "text" @?= "text"
47−test_stripHTML_3 =
47+test_stripHtml_3 =
48− stripHTML "<b>Hakyll</b>, a <i>website</i> generator<img src=\"foo.png\" />"
48+ stripHtml "<b>Hakyll</b>, a <i>website</i> generator<img src=\"foo.png\" />"
49 @?= "Hakyll, a website generator"
49 @?= "Hakyll, a website generator"
51-- Link test cases.
51-- Link test cases.