diff --git a/tests/special-functions.rs b/tests/special-functions.rs index 5f22f5f..b3ed40b 100644 --- a/tests/special-functions.rs +++ b/tests/special-functions.rs @@ -64,6 +64,11 @@ test!( "a {\n color: calc('a');\n}\n", "a {\n color: calc(\"a\");\n}\n" ); +test!( + calc_hash_no_interpolation, + "a {\n color: calc(#);\n}\n", + "a {\n color: calc(#);\n}\n" +); test!( element_whitespace, "a {\n color: element( 1 );\n}\n", diff --git a/tests/url.rs b/tests/url.rs index 9331327..bc97b61 100644 --- a/tests/url.rs +++ b/tests/url.rs @@ -142,6 +142,11 @@ test!( "a {\n color: -webkit-url(https://google.com);\n}\n", "a {\n color: url(https://google.com);\n}\n" ); +test!( + url_hash_no_interpolation, + "a {\n color: url(#);\n}\n", + "a {\n color: url(#);\n}\n" +); error!( url_nothing_after_forward_slash_in_interpolation, "a { color: url(#{/", "Error: Expected expression."