From 57f941350b8850835c44910b8ac4058c9a1e7531 Mon Sep 17 00:00:00 2001 From: ConnorSkees <39542938+ConnorSkees@users.noreply.github.com> Date: Tue, 31 Mar 2020 23:39:32 -0400 Subject: [PATCH] add more tests for quoting and !important --- tests/misc.rs | 4 ++++ tests/str-escape.rs | 5 +++++ 2 files changed, 9 insertions(+) diff --git a/tests/misc.rs b/tests/misc.rs index 2e515db..6df5012 100644 --- a/tests/misc.rs +++ b/tests/misc.rs @@ -101,3 +101,7 @@ test!( "a {\n color: foo ! important;\n}\n", "a {\n color: foo !important;\n}\n" ); +test!( + values_after_important, + "a {\n color: foo bar !important hux baz;\n}\n" +); diff --git a/tests/str-escape.rs b/tests/str-escape.rs index 7dbfafd..098d9e4 100644 --- a/tests/str-escape.rs +++ b/tests/str-escape.rs @@ -122,3 +122,8 @@ test!( "a {\n color: #{\"\\b\"};\n}\n", "a {\n color: \x0b;\n}\n" ); +test!( + quote_escape, + "a {\n color: quote(\\b);\n}\n", + "a {\n color: \"\\\\b \";\n}\n" +);