We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 81075c5 commit 5a5010aCopy full SHA for 5a5010a
Framework/Core/test/test_Variants.cxx
@@ -327,14 +327,16 @@ TEST_CASE("VariantJSONConversionsTest")
327
328
std::vector<std::string> vstrings{"myoption_one", "myoption_two"};
329
Variant vvstr(vstrings);
330
+ REQUIRE(vvstr.size() == 2);
331
std::stringstream osal;
- VariantJSONHelpers::write(osal, vvstr);
332
+ osal << vvstr;
333
334
std::stringstream isal;
335
isal.str(osal.str());
336
auto vvstra = VariantJSONHelpers::read<VariantType::ArrayString>(isal);
337
- for (auto i = 0U; i < vvstra.size(); ++i) {
338
+ REQUIRE(vvstr.size() == vvstra.size());
339
+ for (auto i = 0U; i < vstrings.size(); ++i) {
340
REQUIRE(vstrings[i] == vvstra.get<std::string*>()[i]);
341
}
342
0 commit comments