| 253 | } |
| 254 | |
| 255 | std::string roundtrip_test(const char *in) { |
| 256 | std::istringstream iss(in); |
| 257 | json::UnknownElement ele; |
| 258 | json::Reader::Read(ele, iss); |
| 259 | |
| 260 | std::stringstream oss; |
| 261 | agi::JsonWriter::Write(ele, oss); |
| 262 | return oss.str(); |
| 263 | } |
| 264 | |
| 265 | TEST(lagi_cajun, round_double_roundtrips) { |
| 266 | EXPECT_STREQ("1.0", roundtrip_test("1.0").c_str()); |