summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicole Rauch <nicole.m@gmx.de>2016-08-14 17:02:49 +0200
committerNicole Rauch <nicole.m@gmx.de>2016-08-14 22:13:31 +0200
commitc0a86b3d7e759fa060e091df0a3ae7d0df6354ce (patch)
tree24702b8075445cb0105ee15d856f150dfbbfa349
parent84818cb94aef6f7e3dc1a4b7abcd0e703508ea67 (diff)
downloadhakyll-c0a86b3d7e759fa060e091df0a3ae7d0df6354ce.tar.gz
Adding tests that make sure that whitespace at the start or end of constants does not get eaten.
-rw-r--r--tests/Hakyll/Web/CompressCss/Tests.hs5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/Hakyll/Web/CompressCss/Tests.hs b/tests/Hakyll/Web/CompressCss/Tests.hs
index cf90a34..c8db116 100644
--- a/tests/Hakyll/Web/CompressCss/Tests.hs
+++ b/tests/Hakyll/Web/CompressCss/Tests.hs
@@ -36,6 +36,11 @@ tests = testGroup "Hakyll.Web.CompressCss.Tests" $ concat
-- but do not compress separators inside of constants
, "\" { } ; \"" @=?
compressCss "\" { } ; \""
+ -- don't compress separators at the start or end of constants
+ , "\" }\"" @=?
+ compressCss "\" }\""
+ , "\"{ \"" @=?
+ compressCss "\"{ \""
-- don't get irritated by the wrong constant terminator
, "\" ' \"" @=?
compressCss "\" ' \""