🚨 fix warning

This commit is contained in:
Niels Lohmann 2021-09-12 22:48:34 +02:00
parent cf81564797
commit cec6b21695
No known key found for this signature in database
GPG Key ID: 7F3CEA63AE251B69

View File

@ -672,7 +672,8 @@ TEST_CASE("BON8")
SECTION("invalid string")
{
std::vector<uint8_t> v = {0xF0, 0x9F, 0x80, 0x84};
CHECK_THROWS_WITH_AS(json::from_bon8(v), "[json.exception.parse_error.110] parse error at byte 5: syntax error while parsing BON8 string: unexpected end of input", json::parse_error);
json j;
CHECK_THROWS_WITH_AS(j = json::from_bon8(v), "[json.exception.parse_error.110] parse error at byte 5: syntax error while parsing BON8 string: unexpected end of input", json::parse_error);
}
}