Make sure avro ints and floats are always written properly; fixes #522 (#532)

This commit is contained in:
Dr. Patrick Urbanke (劉自成)
2025-10-25 19:55:08 +02:00
committed by GitHub
parent d0f60b214f
commit 3ae683387e
72 changed files with 346 additions and 289 deletions
+2 -2
View File
@@ -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