on master help sign in
Adding tests that make sure that whitespace at the start or end of constants does not get eaten.
c0a86b3Nicole Rauch
tests/Hakyll/Web/CompressCss/Tests.hs+5
@@ -36,6 +36,11 @@ tests = testGroup "Hakyll.Web.CompressCss.Tests" $ concat
36 -- but do not compress separators inside of constants
36 -- but do not compress separators inside of constants
37 , "\" { } ; \"" @=?
37 , "\" { } ; \"" @=?
38 compressCss "\" { } ; \""
38 compressCss "\" { } ; \""
39+ -- don't compress separators at the start or end of constants
40+ , "\" }\"" @=?
41+ compressCss "\" }\""
42+ , "\"{ \"" @=?
43+ compressCss "\"{ \""
39 -- don't get irritated by the wrong constant terminator
44 -- don't get irritated by the wrong constant terminator
40 , "\" ' \"" @=?
45 , "\" ' \"" @=?
41 compressCss "\" ' \""
46 compressCss "\" ' \""