mirror of
https://github.com/nlohmann/json.git
synced 2025-07-28 12:02:00 +03:00
merged #111
This commit is contained in:
@ -10194,4 +10194,12 @@ TEST_CASE("regression tests")
|
||||
// hexadecimal "a"
|
||||
CHECK(j.dump() == "{\"binary string\":\"\\u0000asdf\\n\",\"int64\":10}");
|
||||
}
|
||||
|
||||
SECTION("issue #111 - subsequent unicode chars")
|
||||
{
|
||||
std::string bytes{0x7, 0x7};
|
||||
json j;
|
||||
j["string"] = bytes;
|
||||
CHECK(j["string"] == "\u0007\u0007");
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user