Adding tests that make sure that whitespace at the start or end of constants does not get eaten.

This commit is contained in:
Nicole Rauch 2016-08-14 17:02:49 +02:00
parent 84818cb94a
commit c0a86b3d7e

View File

@ -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 "\" ' \""