✅ improved test coverage
This commit is contained in:
parent
e191dd833f
commit
7c2a187258
2 changed files with 16 additions and 0 deletions
|
|
@ -359,6 +359,13 @@ TEST_CASE("deserialization")
|
|||
CHECK_THROWS_AS(json::parse(std::begin(v), std::end(v)), json::parse_error);
|
||||
CHECK(not json::accept(std::begin(v), std::end(v)));
|
||||
}
|
||||
|
||||
SECTION("case 16")
|
||||
{
|
||||
uint8_t v[] = {'{', '1', ',', ','};
|
||||
CHECK_THROWS_AS(json::parse(std::begin(v), std::end(v)), json::parse_error);
|
||||
CHECK(not json::accept(std::begin(v), std::end(v)));
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue