mirror of
https://codeberg.org/DawnMagnet/reflect-cpp
synced 2026-11-27 05:16:18 +08:00
15 lines
311 B
C++
15 lines
311 B
C++
#include <rfl.hpp>
|
|
|
|
#include "write_and_read.hpp"
|
|
|
|
namespace test_object {
|
|
|
|
TEST(json, test_object) {
|
|
rfl::Object<rfl::Generic> o;
|
|
o["hello"] = "world";
|
|
EXPECT_EQ(o.get("hello").value().to_string().value(), "world");
|
|
EXPECT_EQ(o.at("hello").to_string().value(), "world");
|
|
}
|
|
|
|
} // namespace test_object
|