improve number parsing code coverage

This commit is contained in:
ConnorSkees 2020-05-21 18:25:42 -04:00
parent 117dc453e2
commit 3e2689a4cb

View File

@ -153,9 +153,13 @@ test!(
"a {\n color: -1e;\n}\n" "a {\n color: -1e;\n}\n"
); );
error!( error!(
scientific_notation_nothing_after_dash, scientific_notation_nothing_after_dash_in_style,
"a {\n color: 1e-;\n}\n", "Error: Expected digit." "a {\n color: 1e-;\n}\n", "Error: Expected digit."
); );
error!(
scientific_notation_nothing_after_dash,
"a {\n color: 1e-", "Error: Expected digit."
);
error!( error!(
scientific_notation_whitespace_after_dash, scientific_notation_whitespace_after_dash,
"a {\n color: 1e- 2;\n}\n", "Error: Expected digit." "a {\n color: 1e- 2;\n}\n", "Error: Expected digit."