1
0
mirror of https://github.com/nlohmann/json synced 2025-01-05 23:21:06 +00:00

two more test cases for numbers

This commit is contained in:
Niels 2015-02-13 20:27:27 +01:00
parent 3391e69248
commit 36e36bf84a

View File

@ -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);
}
}
}