aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/protobuf/json/ut/json2proto_ut.cpp
diff options
context:
space:
mode:
authorchegoryu <chegoryu@yandex-team.ru>2022-02-10 16:49:47 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:49:47 +0300
commit767f05356832cfac686778897626e124d257dbc8 (patch)
tree5d5cb817648f650d76cf1076100726fd9b8448e8 /library/cpp/protobuf/json/ut/json2proto_ut.cpp
parente4b93027b4c6dbd741ebd637f0b5db1d583ee93f (diff)
downloadydb-767f05356832cfac686778897626e124d257dbc8.tar.gz
Restoring authorship annotation for <chegoryu@yandex-team.ru>. Commit 2 of 2.
Diffstat (limited to 'library/cpp/protobuf/json/ut/json2proto_ut.cpp')
-rw-r--r--library/cpp/protobuf/json/ut/json2proto_ut.cpp48
1 files changed, 24 insertions, 24 deletions
diff --git a/library/cpp/protobuf/json/ut/json2proto_ut.cpp b/library/cpp/protobuf/json/ut/json2proto_ut.cpp
index 24964ea652..0dfe57bc7a 100644
--- a/library/cpp/protobuf/json/ut/json2proto_ut.cpp
+++ b/library/cpp/protobuf/json/ut/json2proto_ut.cpp
@@ -1120,28 +1120,28 @@ Y_UNIT_TEST(TestEmptyStringForCastFromString) {
UNIT_ASSERT_EQUAL("", proto.GetOneString());
} // TestEmptyStringForCastFromString
-Y_UNIT_TEST(TestAllowComments) {
- constexpr TStringBuf json = R"(
-{
- "I32": 4, // comment1
-/*
- comment2
- {}
- qwer
-*/
- "I64": 3423
-}
-
-)";
-
- TJson2ProtoConfig config;
- TFlatOptional proto;
- UNIT_ASSERT_EXCEPTION_CONTAINS(Json2Proto(json, proto, config), yexception, "Error: Missing a name for object member");
-
- config.SetAllowComments(true);
- UNIT_ASSERT_NO_EXCEPTION(Json2Proto(json, proto, config));
- UNIT_ASSERT_VALUES_EQUAL(proto.GetI32(), 4);
- UNIT_ASSERT_VALUES_EQUAL(proto.GetI64(), 3423);
-} // TestAllowComments
-
+Y_UNIT_TEST(TestAllowComments) {
+ constexpr TStringBuf json = R"(
+{
+ "I32": 4, // comment1
+/*
+ comment2
+ {}
+ qwer
+*/
+ "I64": 3423
+}
+
+)";
+
+ TJson2ProtoConfig config;
+ TFlatOptional proto;
+ UNIT_ASSERT_EXCEPTION_CONTAINS(Json2Proto(json, proto, config), yexception, "Error: Missing a name for object member");
+
+ config.SetAllowComments(true);
+ UNIT_ASSERT_NO_EXCEPTION(Json2Proto(json, proto, config));
+ UNIT_ASSERT_VALUES_EQUAL(proto.GetI32(), 4);
+ UNIT_ASSERT_VALUES_EQUAL(proto.GetI64(), 3423);
+} // TestAllowComments
+
} // TJson2ProtoTest