🚑 fixing fuzzers to work with new exceptions

This commit is contained in:
Niels Lohmann 2017-03-08 18:37:03 +01:00
parent fc9b528ec9
commit c8a6ce79ea
No known key found for this signature in database
GPG key ID: 7F3CEA63AE251B69
3 changed files with 8 additions and 18 deletions

View file

@ -1358,8 +1358,6 @@ TEST_CASE("CBOR regressions", "[!throws]")
{
// exotic edge case
CHECK_THROWS_AS(json::check_length(0xffffffffffffffffull, 0xfffffffffffffff0ull, 0xff), json::parse_error);
CHECK_THROWS_WITH(json::check_length(0xffffffffffffffffull, 0xfffffffffffffff0ull, 0xff),
"[json.exception.parse_error.110] parse error at 256: cannot read 18446744073709551600 bytes from vector");
}
}