From 36e36bf84a8f6cb804b9963de6be276a821d335c Mon Sep 17 00:00:00 2001 From: Niels Date: Fri, 13 Feb 2015 20:27:27 +0100 Subject: [PATCH] two more test cases for numbers --- test/unit.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test/unit.cpp b/test/unit.cpp index 9d7efb21..f1824544 100644 --- a/test/unit.cpp +++ b/test/unit.cpp @@ -5175,6 +5175,8 @@ TEST_CASE("parser class") CHECK_THROWS_AS(json::parser("-0.0Z").parse(), std::invalid_argument); CHECK_THROWS_AS(json::parser("-0E123:").parse(), std::invalid_argument); CHECK_THROWS_AS(json::parser("-0e0-:").parse(), std::invalid_argument); + CHECK_THROWS_AS(json::parser("-0e-:").parse(), std::invalid_argument); + CHECK_THROWS_AS(json::parser("-0f").parse(), std::invalid_argument); } } }