diff --git a/tests/interpolation.rs b/tests/interpolation.rs index b172e26..aeff296 100644 --- a/tests/interpolation.rs +++ b/tests/interpolation.rs @@ -13,3 +13,8 @@ test!( "a {\n color: #{'red'};\n}\n", "a {\n color: red;\n}\n" ); +test!( + number_after_interpolation, + "a {\n color: a#{foo}1;\n}\n", + "a {\n color: afoo1;\n}\n" +); diff --git a/tests/misc.rs b/tests/misc.rs index da26c21..ccfca53 100644 --- a/tests/misc.rs +++ b/tests/misc.rs @@ -22,3 +22,8 @@ test!( emits_double_newline_between_unrelated_styles, "a {\n color: red;\n}\n\nb {\n color: blue;\n}\n" ); +test!( + variable_interchangable_hypen_dash, + "$a-b: red; $a_b: green; a {\n color: $a-b;\n}\n", + "a {\n color: green;\n}\n" +);