@@ -25,34 +25,23 @@ tests = testGroup "Hakyll.Web.CompressCss.Tests" $ concat
25 compressCss " something \n\t\r something "
25 compressCss " something \n\t\r something "
27 -- strip comments
27 -- strip comments
29− compressCss "/* abc { } ;; \n\t\r */"
28+ , "" @=? compressCss "/* abc { } ;; \n\t\r */"
31 -- compress separators
30 -- compress separators
33− compressCss "; }"
31+ , "}" @=? compressCss "; }"
35− compressCss " { } ; "
32+ , "{};" @=? compressCss " { } ; "
36 -- but do not compress separators inside of constants
33 -- but do not compress separators inside of constants
38− compressCss "\" { } ; \""
34+ , "\" { } ; \"" @=? compressCss "\" { } ; \""
39 -- don't compress separators at the start or end of constants
35 -- don't compress separators at the start or end of constants
41− compressCss "\" }\""
36+ , "\" }\"" @=? compressCss "\" }\""
43− compressCss "\"{ \""
37+ , "\"{ \"" @=? compressCss "\"{ \""
44 -- don't get irritated by the wrong constant terminator
38 -- don't get irritated by the wrong constant terminator
46− compressCss "\" ' \""
39+ , "\" ' \"" @=? compressCss "\" ' \""
48− compressCss "' \" '"
40+ , "' \" '" @=? compressCss "' \" '"
49 -- don't compress whitespace in constants in the middle of a string
41 -- don't compress whitespace in constants in the middle of a string
51− compressCss "abc '{ '"
42+ , "abc '{ '" @=? compressCss "abc '{ '"
53− compressCss "abc \"{ \""
43+ , "abc \"{ \"" @=? compressCss "abc \"{ \""
54 -- compress multiple semicolons
44 -- compress multiple semicolons
56− compressCss ";;;;;;;"
45+ , ";" @=? compressCss ";;;;;;;"