| 448 | } |
| 449 | |
| 450 | void chinese_char() |
| 451 | { |
| 452 | jsoncons::json j; |
| 453 | |
| 454 | std::string s = (const char*)u8"你好"; |
| 455 | j.try_emplace("hello", s); |
| 456 | assert(j["hello"].as<std::string>() == s); |
| 457 | |
| 458 | std::string json_string; |
| 459 | j.dump(json_string); |
| 460 | } |
| 461 | |
| 462 | #ifdef __cpp_char8_t |
| 463 |
no test coverage detected