From ff52e566003ea3ead336027b58304af2194afb6c Mon Sep 17 00:00:00 2001 From: Connor Skees Date: Wed, 19 Aug 2020 03:49:12 -0400 Subject: [PATCH] test for single hash to calc and url --- tests/special-functions.rs | 5 +++++ tests/url.rs | 5 +++++ 2 files changed, 10 insertions(+) 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."