Files
reflect-cpp/tests/json/test_empty_object.cpp
T

20 lines
340 B
C++

#include <iostream>
#include <rfl.hpp>
#include <rfl/json.hpp>
#include <source_location>
#include <string>
#include <vector>
#include "write_and_read.hpp"
namespace test_empty_object {
struct Empty {};
TEST(json, test_empty_object) {
const auto empty = Empty{};
write_and_read(empty, R"({})");
}
} // namespace test_empty_object