mirror of
https://codeberg.org/DawnMagnet/reflect-cpp
synced 2026-11-27 05:16:18 +08:00
17 lines
275 B
C++
17 lines
275 B
C++
#include <rfl.hpp>
|
|
#include <rfl/json.hpp>
|
|
#include <string>
|
|
|
|
#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
|