diff options
author | Jasper Van der Jeugt <jaspervdj@gmail.com> | 2011-06-05 23:13:11 +0200 |
---|---|---|
committer | Jasper Van der Jeugt <jaspervdj@gmail.com> | 2011-06-05 23:13:11 +0200 |
commit | 699a4e111309278495eda50cabe678354864a449 (patch) | |
tree | 45b11ab6b3186c9f3b3ff7836b308602e0affcb5 /tests/Hakyll/Web/Util/Html/Tests.hs | |
parent | 4e7acdcb7765969e322fd244bb845917da4170c8 (diff) | |
download | hakyll-699a4e111309278495eda50cabe678354864a449.tar.gz |
Add tests for stripTags
Diffstat (limited to 'tests/Hakyll/Web/Util/Html/Tests.hs')
-rw-r--r-- | tests/Hakyll/Web/Util/Html/Tests.hs | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/tests/Hakyll/Web/Util/Html/Tests.hs b/tests/Hakyll/Web/Util/Html/Tests.hs new file mode 100644 index 0000000..fc72cdf --- /dev/null +++ b/tests/Hakyll/Web/Util/Html/Tests.hs @@ -0,0 +1,18 @@ +module Hakyll.Web.Util.Html.Tests + ( tests + ) where + +import Test.Framework +import Test.HUnit hiding (Test) + +import Hakyll.Web.Util.Html +import TestSuite.Util + +tests :: [Test] +tests = concat + [ fromAssertions "stripTags" + [ "foo" @=? stripTags "<p>foo</p>" + , "foo bar" @=? stripTags "<p>foo</p> bar" + , "foo" @=? stripTags "<p>foo</p" + ] + ] |