From 84818cb94aef6f7e3dc1a4b7abcd0e703508ea67 Mon Sep 17 00:00:00 2001 From: Nicole Rauch Date: Sun, 14 Aug 2016 17:02:01 +0200 Subject: Adding tests that make sure that the constant terminators don't get mixed up. --- tests/Hakyll/Web/CompressCss/Tests.hs | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'tests/Hakyll/Web') diff --git a/tests/Hakyll/Web/CompressCss/Tests.hs b/tests/Hakyll/Web/CompressCss/Tests.hs index 08c646d..cf90a34 100644 --- a/tests/Hakyll/Web/CompressCss/Tests.hs +++ b/tests/Hakyll/Web/CompressCss/Tests.hs @@ -36,6 +36,11 @@ tests = testGroup "Hakyll.Web.CompressCss.Tests" $ concat -- but do not compress separators inside of constants , "\" { } ; \"" @=? compressCss "\" { } ; \"" + -- don't get irritated by the wrong constant terminator + , "\" ' \"" @=? + compressCss "\" ' \"" + , "' \" '" @=? + compressCss "' \" '" , ";" @=? compressCss ";;;;;;;" -- cgit v1.2.3