diff options
author | Egor Kochetov <gluk47@gmail.com> | 2022-02-10 16:50:36 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:50:36 +0300 |
commit | a1fb24cd1409be21002b3f8d291c3f6cfc113e68 (patch) | |
tree | 5d5cb817648f650d76cf1076100726fd9b8448e8 /library/cpp/protobuf/json/ut | |
parent | 40896b241c91572ea1369526ee1e6ae0ba340f34 (diff) | |
download | ydb-a1fb24cd1409be21002b3f8d291c3f6cfc113e68.tar.gz |
Restoring authorship annotation for Egor Kochetov <gluk47@gmail.com>. Commit 2 of 2.
Diffstat (limited to 'library/cpp/protobuf/json/ut')
-rw-r--r-- | library/cpp/protobuf/json/ut/json2proto_ut.cpp | 32 |
1 files changed, 16 insertions, 16 deletions
diff --git a/library/cpp/protobuf/json/ut/json2proto_ut.cpp b/library/cpp/protobuf/json/ut/json2proto_ut.cpp index f313968d311..0dfe57bc7a2 100644 --- a/library/cpp/protobuf/json/ut/json2proto_ut.cpp +++ b/library/cpp/protobuf/json/ut/json2proto_ut.cpp @@ -672,24 +672,24 @@ Y_UNIT_TEST(TestCastRobust) { UNIT_ASSERT_PROTOS_EQUAL(proto, expected); } -Y_UNIT_TEST(TestVectorizeScalars) { - NJson::TJsonValue json; -#define DEFINE_FIELD(name, value) \ - json.InsertValue(#name, value); +Y_UNIT_TEST(TestVectorizeScalars) { + NJson::TJsonValue json; +#define DEFINE_FIELD(name, value) \ + json.InsertValue(#name, value); #include <library/cpp/protobuf/json/ut/fields.incl> -#undef DEFINE_FIELD - - TFlatRepeated proto; - TJson2ProtoConfig config; - config.SetVectorizeScalars(true); - Json2Proto(json, proto, config); - -#define DEFINE_FIELD(name, value) \ - UNIT_ASSERT_VALUES_EQUAL(proto.Get ## name(0), value); +#undef DEFINE_FIELD + + TFlatRepeated proto; + TJson2ProtoConfig config; + config.SetVectorizeScalars(true); + Json2Proto(json, proto, config); + +#define DEFINE_FIELD(name, value) \ + UNIT_ASSERT_VALUES_EQUAL(proto.Get ## name(0), value); #include <library/cpp/protobuf/json/ut/fields.incl> -#undef DEFINE_FIELD -} - +#undef DEFINE_FIELD +} + Y_UNIT_TEST(TestValueVectorizer) { { // No ValueVectorizer |