Commit 4c55ada0 by Niels

another test case

parent 6ddb1150
......@@ -7346,9 +7346,16 @@ TEST_CASE("parser class")
// exotic test cases for full coverage
{
std::stringstream ss;
ss << "\"\\u000\n1\"";
CHECK(json::parser(ss).parse().get<json::string_t>() == "\x01");
{
std::stringstream ss;
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");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment