diff --git a/tests/addition.rs b/tests/addition.rs index da35676..a693b09 100644 --- a/tests/addition.rs +++ b/tests/addition.rs @@ -208,3 +208,13 @@ test!( "a {\n color: foo + 1 + bar + 2;\n}\n", "a {\n color: foo1bar2;\n}\n" ); +test!( + unquoted_plus_dbl_quoted, + "a {\n color: foo + \"foo\";\n}\n", + "a {\n color: foofoo;\n}\n" +); +test!( + unquoted_plus_sgl_quoted, + "a {\n color: foo + 'foo';\n}\n", + "a {\n color: foofoo;\n}\n" +); diff --git a/tests/str-escape.rs b/tests/str-escape.rs index eb88004..ace63e2 100644 --- a/tests/str-escape.rs +++ b/tests/str-escape.rs @@ -111,3 +111,13 @@ test!( "a {\n color: \"\\b\\c\\d\\e\\f\\g\\h\\i\\j\\k\\l\\m\\n\\o\\p\\q\\r\\s\\t\\u\\v\\w\\x\\y\\z\";\n}\n", "a {\n color: \"\\b\\c\\d\\e\\fghijklmnopqrstuvwxyz\";\n}\n" ); +test!( + interpolated_inside_string_does_not_produce_unquoted_output, + "a {\n color: \"#{\"\\b\"}\";\n}\n", + "a {\n color: \"\\b\";\n}\n" +); +test!( + unquote_quoted_backslash_single_lowercase_hex_char, + "a {\n color: #{\"\\b\"};\n}\n", + "a {\n color: \x0b;\n}\n" +);