test mul unit display errors

This commit is contained in:
ConnorSkees 2020-04-18 19:50:14 -04:00
parent 47b7ece6c5
commit 0a5c6b907c

View File

@ -69,6 +69,15 @@ test!(
"a {\n color: 10% + 10;\n}\n",
"a {\n color: 20%;\n}\n"
);
error!(
display_single_mul,
"a {\n color: 1rem * 1px;\n}\n", "Error: 1rem*px isn't a valid CSS value."
);
error!(
display_arbitrary_mul,
"a {\n color: 1rem * 1px * 1rad * 1foo;\n}\n",
"Error: 1rem*px*rad*foo isn't a valid CSS value."
);
macro_rules! test_unit_addition {
($u1:ident, $u2:ident, $out:literal) => {