mirror of
https://codeberg.org/DawnMagnet/reflect-cpp
synced 2026-11-28 05:46:18 +08:00
16 lines
345 B
C++
16 lines
345 B
C++
#include <map>
|
|
#include <rfl.hpp>
|
|
#include <rfl/json.hpp>
|
|
#include <string>
|
|
|
|
#include "write_and_read.hpp"
|
|
|
|
namespace test_wstring {
|
|
TEST(json, test_wstring) {
|
|
std::map<std::string, std::wstring> homer;
|
|
homer.insert(std::make_pair("firstName", L"Homer"));
|
|
|
|
write_and_read(homer, R"({"firstName":"Homer"})");
|
|
}
|
|
} // namespace test_wstring
|