🔀 merge branch 'develop' into feature/exceptions_3.0.0
This commit is contained in:
commit
855cdcf05c
8 changed files with 229 additions and 90 deletions
|
|
@ -276,7 +276,9 @@ TEST_CASE("parser class")
|
|||
|
||||
SECTION("overflow")
|
||||
{
|
||||
CHECK(json::parser("1.18973e+4932").parse() == json());
|
||||
// overflows during parsing yield an exception
|
||||
CHECK_THROWS_AS(json::parser("1.18973e+4932").parse() == json(), std::out_of_range);
|
||||
CHECK_THROWS_WITH(json::parser("1.18973e+4932").parse() == json(), "number overflow: 1.18973e+4932");
|
||||
}
|
||||
|
||||
SECTION("invalid numbers")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue