Commit c043e0a8 authored by Yedidya Feldblum's avatar Yedidya Feldblum Committed by Facebook Github Bot

Do only single var decl per statement in folly/test/DynamicConverterTest.cpp

Summary: [Folly] Do only single var decl per statement in `folly/test/DynamicConverterTest.cpp`.

Reviewed By: igorsugak

Differential Revision: D9653672

fbshipit-source-id: 08bb529cc90761c69dabd2e00f58f1767f07146a
parent 3d646906
...@@ -242,41 +242,34 @@ TEST(DynamicConverter, crazy) { ...@@ -242,41 +242,34 @@ TEST(DynamicConverter, crazy) {
// some from a vector of KV pairs. // some from a vector of KV pairs.
// T will be vector<set<string>> // T will be vector<set<string>>
std::set<std::string> std::set<std::string> s1 = {"a", "e", "i", "o", "u"};
s1 = { "a", "e", "i", "o", "u" }, std::set<std::string> s2 = {"2", "3", "5", "7"};
s2 = { "2", "3", "5", "7" }, std::set<std::string> s3 = {"Hello", "World"};
s3 = { "Hello", "World" };
std::vector<std::set<std::string>> std::vector<std::set<std::string>> v1 = {};
v1 = {}, std::vector<std::set<std::string>> v2 = {s1, s2};
v2 = { s1, s2 }, std::vector<std::set<std::string>> v3 = {s3};
v3 = { s3 };
std::unordered_map<bool, std::vector<std::set<std::string>>> std::unordered_map<bool, std::vector<std::set<std::string>>> m1 = {
m1 = { { true, v1 }, { false, v2 } }, {true, v1}, {false, v2}};
m2 = { { true, v3 } }; std::unordered_map<bool, std::vector<std::set<std::string>>> m2 = {
{true, v3}};
std::vector<std::unordered_map<bool, std::vector<std::set<std::string>>>> std::vector<std::unordered_map<bool, std::vector<std::set<std::string>>>>
f1 = { m1, m2 }; f1 = { m1, m2 };
dynamic ds1 = dynamic::array("a", "e", "i", "o", "u");
dynamic ds2 = dynamic::array("2", "3", "5", "7");
dynamic ds3 = dynamic::array("Hello", "World");
dynamic dynamic dv1 = dynamic::array;
ds1 = dynamic::array("a", "e", "i", "o", "u"), dynamic dv2 = dynamic::array(ds1, ds2);
ds2 = dynamic::array("2", "3", "5", "7"), dynamic dv3(dynamic::array(ds3));
ds3 = dynamic::array("Hello", "World");
dynamic dynamic dm1 = dynamic::object(true, dv1)(false, dv2);
dv1 = dynamic::array, dynamic dm2 = dynamic::array(dynamic::array(true, dv3));
dv2 = dynamic::array(ds1, ds2),
dv3(dynamic::array(ds3));
dynamic
dm1 = dynamic::object(true, dv1)(false, dv2),
dm2 = dynamic::array(dynamic::array(true, dv3));
dynamic
df1 = dynamic::array(dm1, dm2);
dynamic df1 = dynamic::array(dm1, dm2);
auto i = convertTo<std::vector<std::unordered_map<bool, std::vector< auto i = convertTo<std::vector<std::unordered_map<bool, std::vector<
std::set<std::string>>>>>(df1); // yes, that is 5 close-chevrons std::set<std::string>>>>>(df1); // yes, that is 5 close-chevrons
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment