on master help sign in
Adding tests that make sure that the constant terminators don't get mixed up.
84818cbNicole 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 get irritated by the wrong constant terminator
40+ , "\" ' \"" @=?
41+ compressCss "\" ' \""
42+ , "' \" '" @=?
43+ compressCss "' \" '"
39 , ";" @=?
44 , ";" @=?
40 compressCss ";;;;;;;"
45 compressCss ";;;;;;;"
41
46