@@ -23,6 +23,11 @@ tests = testGroup "Hakyll.Web.CompressCss.Tests" $ concat
23 -- compress whitespace
23 -- compress whitespace
24 " something something " @=?
24 " something something " @=?
25 compressCss " something \n\t\r something "
25 compressCss " something \n\t\r something "
26+ -- do not compress whitespace in constants
27+ , "abc \" \t\n\r \" xyz" @=?
28+ compressCss "abc \" \t\n\r \" xyz"
29+ , "abc ' \t\n\r ' xyz" @=?
30+ compressCss "abc ' \t\n\r ' xyz"
27 -- strip comments
32 -- strip comments
28 , "" @=? compressCss "/* abc { } ;; \n\t\r */"
33 , "" @=? compressCss "/* abc { } ;; \n\t\r */"
@@ -40,7 +45,7 @@ tests = testGroup "Hakyll.Web.CompressCss.Tests" $ concat
40 -- don't get irritated by the wrong constant terminator
45 -- don't get irritated by the wrong constant terminator
41 , "\" ' \"" @=? compressCss "\" ' \""
46 , "\" ' \"" @=? compressCss "\" ' \""
42 , "' \" '" @=? compressCss "' \" '"
47 , "' \" '" @=? compressCss "' \" '"
43− -- don't compress whitespace in constants in the middle of a string
48+ -- don't compress whitespace around separators in constants in the middle of a string
44 , "abc '{ '" @=? compressCss "abc '{ '"
49 , "abc '{ '" @=? compressCss "abc '{ '"
45 , "abc \"{ \"" @=? compressCss "abc \"{ \""
50 , "abc \"{ \"" @=? compressCss "abc \"{ \""
46 -- compress multiple semicolons
51 -- compress multiple semicolons