MCPcopy Create free account
hub / github.com/TypesettingTools/Aegisub / roundtrip_test

Function roundtrip_test

tests/tests/cajun.cpp:255–263  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

253}
254
255std::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
265TEST(lagi_cajun, round_double_roundtrips) {
266 EXPECT_STREQ("1.0", roundtrip_test("1.0").c_str());

Callers 1

TESTFunction · 0.85

Calls 1

WriteFunction · 0.50

Tested by

no test coverage detected