on master help sign in
Adding tests that make sure that whitespace at the start or end of constants does not get eaten.
commitc0a86b3d7e759fa060e091df0a3ae7d0df6354ce authorNicole Rauch <nicole.m@gmx.de> dateSun 14 Aug 2016, 17:02 (10 years ago) parent84818cb
1 file changed+5
tests/Hakyll/Web/CompressCss/Tests.hs+5
tests/Hakyll/Web/CompressCss/Tests.hs+5
@@ -36,6 +36,11 @@ tests = testGroup "Hakyll.Web.CompressCss.Tests" $ concat
3636 -- but do not compress separators inside of constants
3737 , "\" { } ; \"" @=?
3838 compressCss "\" { } ; \""
39+ -- don't compress separators at the start or end of constants
40+ , "\" }\"" @=?
41+ compressCss "\" }\""
42+ , "\"{ \"" @=?
43+ compressCss "\"{ \""
3944 -- don't get irritated by the wrong constant terminator
4045 , "\" ' \"" @=?
4146 compressCss "\" ' \""