mirror of
https://github.com/nlohmann/json.git
synced 2024-11-28 09:09:02 +08:00
added another test case
This commit is contained in:
parent
9e7941b6ba
commit
ca981270a0
@ -5653,6 +5653,7 @@ TEST_CASE("parser class")
|
||||
CHECK(json::parser("\"\\uFFFF\"").parse().get<json::string_t>() == "");
|
||||
CHECK(json::parser("\"\\u20AC\"").parse().get<json::string_t>() == "€");
|
||||
CHECK(json::parser("\"€\"").parse().get<json::string_t>() == "€");
|
||||
CHECK(json::parser("\"🎈\"").parse().get<json::string_t>() == "🎈");
|
||||
|
||||
CHECK(json::parse("\"\\ud80c\\udc60\"").get<json::string_t>() == u8"\U00013060");
|
||||
CHECK(json::parse("\"\\ud83c\\udf1e\"").get<json::string_t>() == "🌞");
|
||||
|
Loading…
Reference in New Issue
Block a user