#include #include #include "write_and_read.hpp" namespace test_double { TEST(yaml, test_double) { auto obj = rfl::Generic::Object(); const double age = 10; obj["age"] = age; const auto s = rfl::yaml::write(obj); EXPECT_EQ( rfl::from_generic( rfl::yaml::read(s).value().get("age").value()) .value(), 10.0); } } // namespace test_double