Add variable whitespace tests

This commit is contained in:
ConnorSkees 2020-01-05 19:47:24 -05:00
parent 874c36a959
commit b756973b08

View File

@ -235,6 +235,16 @@ mod test {
"$a : 1px ;\na {\n height: $a;\n}\n",
"a {\n height: 1px;\n}\n"
);
test!(
literal_and_variable_as_val,
"$a: 1px;\na {\n height: 1 $a;\n}\n",
"a {\n height: 1 1px;\n}\n"
);
test!(
literal_and_variable_as_var,
"$a: 1px;\n$b: 1 $a;\na {\n height: $b;\n}\n",
"a {\n height: 1 1px;\n}\n"
);
test!(unit_none, "a {\n height: 1;\n}\n");
test!(unit_not_attached, "a {\n height: 1 px;\n}\n");