aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/protobuf
diff options
context:
space:
mode:
authorrobot-piglet <robot-piglet@yandex-team.com>2023-03-20 17:40:40 +0300
committerrobot-piglet <robot-piglet@yandex-team.com>2023-03-20 17:40:40 +0300
commit2d4c22bc43cfc5218e01963d333c9eab2dba93a8 (patch)
tree48a8475d0fa15f6d1f578cbd64db3491e2f79389 /library/cpp/protobuf
parent22a94cafc8624a821b4845dc5c1bc1ade43d549b (diff)
downloadydb-2d4c22bc43cfc5218e01963d333c9eab2dba93a8.tar.gz
Intermediate changes
Diffstat (limited to 'library/cpp/protobuf')
-rw-r--r--library/cpp/protobuf/json/ut/json2proto_ut.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/library/cpp/protobuf/json/ut/json2proto_ut.cpp b/library/cpp/protobuf/json/ut/json2proto_ut.cpp
index d213c9e913..d695f95c76 100644
--- a/library/cpp/protobuf/json/ut/json2proto_ut.cpp
+++ b/library/cpp/protobuf/json/ut/json2proto_ut.cpp
@@ -1143,6 +1143,10 @@ Y_UNIT_TEST(TestAllowComments) {
UNIT_ASSERT_NO_EXCEPTION(Json2Proto(json, proto, config));
UNIT_ASSERT_VALUES_EQUAL(proto.GetI32(), 4);
UNIT_ASSERT_VALUES_EQUAL(proto.GetI64(), 3423);
+ proto = TFlatOptional();
+ UNIT_ASSERT_NO_EXCEPTION(proto = Json2Proto<TFlatOptional>(json, config));
+ UNIT_ASSERT_VALUES_EQUAL(proto.GetI32(), 4);
+ UNIT_ASSERT_VALUES_EQUAL(proto.GetI64(), 3423);
} // TestAllowComments
Y_UNIT_TEST(TestSimplifiedDuration) {
@@ -1167,7 +1171,6 @@ Y_UNIT_TEST(TestSimplifiedTimestamp) {
json["Timestamp"] = "2014-08-26T15:52:15Z";
NProtobufJson::Json2Proto(json, simpleTimestamp, NProtobufJson::TJson2ProtoConfig().SetAllowString2TimeConversion(true));
UNIT_ASSERT_EQUAL(NProtoInterop::CastFromProto(simpleTimestamp.GetTimestamp()), TInstant::ParseIso8601("2014-08-26T15:52:15Z"));
-
} // TestSimplifiedTimestamp
} // TJson2ProtoTest