MCPcopy Create free account
hub / github.com/boostorg/json / testIssue45

Method testIssue45

test/stream_parser.cpp:1225–1241  ·  view source on GitHub ↗

https://github.com/boostorg/json/issues/45

Source from the content-addressed store, hash-verified

1223
1224 // https://github.com/boostorg/json/issues/45
1225 void
1226 testIssue45()
1227 {
1228 struct T
1229 {
1230 value jv;
1231
1232 T(value jv_)
1233 : jv(jv_)
1234 {
1235 }
1236 };
1237
1238 auto const jv = parse("[]");
1239 auto const t = T{jv};
1240 BOOST_TEST(serialize(t.jv) == "[]");
1241 }
1242
1243 void
1244 testIssue876()

Callers

nothing calls this directly

Calls 1

serializeFunction · 0.85

Tested by

no test coverage detected