From cbec684052bbb32e6cf3f0d8a67bf02bded4205d Mon Sep 17 00:00:00 2001 From: ConnorSkees <39542938+ConnorSkees@users.noreply.github.com> Date: Sat, 8 Feb 2020 17:33:52 -0500 Subject: [PATCH] Test for hyphen/dash interchangable and number after interpolation --- tests/interpolation.rs | 5 +++++ tests/misc.rs | 5 +++++ 2 files changed, 10 insertions(+) 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" +);