Test for hyphen/dash interchangable and number after interpolation

This commit is contained in:
ConnorSkees 2020-02-08 17:33:52 -05:00
parent fa582b3316
commit cbec684052
2 changed files with 10 additions and 0 deletions

View File

@ -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"
);

View File

@ -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"
);