From 3e2689a4cb597f07158e4efedd7b1d35335ebcd5 Mon Sep 17 00:00:00 2001 From: ConnorSkees <39542938+ConnorSkees@users.noreply.github.com> Date: Thu, 21 May 2020 18:25:42 -0400 Subject: [PATCH] improve number parsing code coverage --- tests/number.rs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/tests/number.rs b/tests/number.rs index 40aec65..1d40a8d 100644 --- a/tests/number.rs +++ b/tests/number.rs @@ -153,9 +153,13 @@ test!( "a {\n color: -1e;\n}\n" ); error!( - scientific_notation_nothing_after_dash, + scientific_notation_nothing_after_dash_in_style, "a {\n color: 1e-;\n}\n", "Error: Expected digit." ); +error!( + scientific_notation_nothing_after_dash, + "a {\n color: 1e-", "Error: Expected digit." +); error!( scientific_notation_whitespace_after_dash, "a {\n color: 1e- 2;\n}\n", "Error: Expected digit."