mirror of
https://codeberg.org/DawnMagnet/reflect-cpp
synced 2026-11-28 05:46:18 +08:00
20 lines
427 B
C++
20 lines
427 B
C++
#include <cassert>
|
|
#include <rfl.hpp>
|
|
#include <string>
|
|
|
|
#include "write_and_read.hpp"
|
|
|
|
struct TestStruct {
|
|
std::string theNormalString;
|
|
std::wstring theWiderString;
|
|
};
|
|
|
|
namespace test_wstring {
|
|
TEST(msgpack, test_wstring) {
|
|
const auto test = TestStruct{.theNormalString = "The normal string",
|
|
.theWiderString = L"The wider string"};
|
|
|
|
write_and_read(test);
|
|
}
|
|
} // namespace test_wstring
|