From 699a4e111309278495eda50cabe678354864a449 Mon Sep 17 00:00:00 2001 From: Jasper Van der Jeugt Date: Sun, 5 Jun 2011 23:13:11 +0200 Subject: Add tests for stripTags --- tests/Hakyll/Web/Util/Html/Tests.hs | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 tests/Hakyll/Web/Util/Html/Tests.hs (limited to 'tests/Hakyll') 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 "

foo

" + , "foo bar" @=? stripTags "

foo

bar" + , "foo" @=? stripTags "

foo