summaryrefslogtreecommitdiff
path: root/tests/Hakyll
diff options
context:
space:
mode:
authorJasper Van der Jeugt <jaspervdj@gmail.com>2011-06-08 15:53:36 +0200
committerJasper Van der Jeugt <jaspervdj@gmail.com>2011-06-08 15:53:36 +0200
commitd08a33a28791a2c0cbf39abb59b7770abe20ebb0 (patch)
tree69018b3462ddef1cff3f6c4a43a24bde09792ab0 /tests/Hakyll
parenta6329a577bf38dff1fc9ff515e0a80023a38ee3a (diff)
parent699a4e111309278495eda50cabe678354864a449 (diff)
downloadhakyll-d08a33a28791a2c0cbf39abb59b7770abe20ebb0.tar.gz
Merge branch 'master' into type-safe-identifiers
Conflicts: hakyll.cabal
Diffstat (limited to 'tests/Hakyll')
-rw-r--r--tests/Hakyll/Web/Util/Html/Tests.hs18
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"
+ ]
+ ]