summaryrefslogtreecommitdiff
path: root/tests/Hakyll/Web/CompressCss/Tests.hs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/Hakyll/Web/CompressCss/Tests.hs')
-rw-r--r--tests/Hakyll/Web/CompressCss/Tests.hs10
1 files changed, 6 insertions, 4 deletions
diff --git a/tests/Hakyll/Web/CompressCss/Tests.hs b/tests/Hakyll/Web/CompressCss/Tests.hs
index c8db116..44dfc6c 100644
--- a/tests/Hakyll/Web/CompressCss/Tests.hs
+++ b/tests/Hakyll/Web/CompressCss/Tests.hs
@@ -46,11 +46,13 @@ tests = testGroup "Hakyll.Web.CompressCss.Tests" $ concat
compressCss "\" ' \""
, "' \" '" @=?
compressCss "' \" '"
+ -- don't compress whitespace in constants in the middle of a string
+ , "abc '{ '" @=?
+ compressCss "abc '{ '"
+ , "abc \"{ \"" @=?
+ compressCss "abc \"{ \""
+ -- compress multiple semicolons
, ";" @=?
compressCss ";;;;;;;"
-
- -- some real-life css
- , "a:after{content: \" (\" attr(href) \")\"}" @=?
- compressCss "a:after { content: \" (\" attr(href) \")\"; }"
]
]