mirror of
https://github.com/nlohmann/json.git
synced 2024-08-22 21:12:27 +02:00
✅ improved coverage
This commit is contained in:
parent
9add24ff10
commit
84f2e64a7c
|
@ -362,7 +362,7 @@ TEST_CASE("deserialization")
|
||||||
|
|
||||||
SECTION("case 16")
|
SECTION("case 16")
|
||||||
{
|
{
|
||||||
uint8_t v[] = {'{', '1', ',', ','};
|
uint8_t v[] = {'{', '\"', '\"', ':', '1', '1'};
|
||||||
CHECK_THROWS_AS(json::parse(std::begin(v), std::end(v)), json::parse_error);
|
CHECK_THROWS_AS(json::parse(std::begin(v), std::end(v)), json::parse_error);
|
||||||
CHECK(not json::accept(std::begin(v), std::end(v)));
|
CHECK(not json::accept(std::begin(v), std::end(v)));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue