Skip to content

Commit

Permalink
added another test case
Browse files Browse the repository at this point in the history
  • Loading branch information
nlohmann committed Feb 16, 2015
1 parent 9e7941b commit ca98127
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions test/unit.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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>() == "🌞");
Expand Down

0 comments on commit ca98127

Please sign in to comment.