Files
2025-10-13 18:16:14 +02:00

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