another test case
This commit is contained in:
parent
6ddb115072
commit
4c55ada0f7
1 changed files with 10 additions and 3 deletions
|
@ -7346,9 +7346,16 @@ TEST_CASE("parser class")
|
||||||
|
|
||||||
// exotic test cases for full coverage
|
// exotic test cases for full coverage
|
||||||
{
|
{
|
||||||
std::stringstream ss;
|
{
|
||||||
ss << "\"\\u000\n1\"";
|
std::stringstream ss;
|
||||||
CHECK(json::parser(ss).parse().get<json::string_t>() == "\x01");
|
ss << "\"\\u000\n1\"";
|
||||||
|
CHECK(json::parser(ss).parse().get<json::string_t>() == "\x01");
|
||||||
|
}
|
||||||
|
{
|
||||||
|
std::stringstream ss;
|
||||||
|
ss << "\"\\u00\n01\"";
|
||||||
|
CHECK(json::parser(ss).parse().get<json::string_t>() == "\x01");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
CHECK(json::parser("\"\\u0001\"").parse().get<json::string_t>() == "\x01");
|
CHECK(json::parser("\"\\u0001\"").parse().get<json::string_t>() == "\x01");
|
||||||
|
|
Loading…
Reference in a new issue