mirror of
https://codeberg.org/DawnMagnet/reflect-cpp
synced 2026-12-07 03:06:18 +08:00
This commit is contained in:
@@ -11,13 +11,13 @@ struct Person {
|
||||
std::unique_ptr<std::set<std::string>> children;
|
||||
};
|
||||
|
||||
TEST(avro, test_set) {
|
||||
TEST(avro, test_set) {
|
||||
auto children = std::make_unique<std::set<std::string>>(
|
||||
std::set<std::string>({"Bart", "Lisa", "Maggie"}));
|
||||
|
||||
const auto homer =
|
||||
Person{.first_name = "Homer", .children = std::move(children)};
|
||||
|
||||
write_and_read(homer);
|
||||
write_and_read_with_json(homer);
|
||||
}
|
||||
} // namespace test_set
|
||||
|
||||
Reference in New Issue
Block a user