File tree Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -293,11 +293,14 @@ const char kOptionalInDeepAnyFields[] = R"(
293
293
}
294
294
)" ;
295
295
296
- const char kUnknownField [] = R"(
296
+ const char kUnknownFieldInput [] = R"(
297
297
optional_bool: true
298
298
unknown_field: "test unknown field"
299
299
)" ;
300
300
301
+ const char kUnknownFieldExpected [] = R"( optional_bool: true
302
+ )" ;
303
+
301
304
class TestMutator : public Mutator {
302
305
public:
303
306
explicit TestMutator (bool keep_initialized,
@@ -673,10 +676,10 @@ TYPED_TEST(MutatorTypedTest, Serialization) {
673
676
}
674
677
}
675
678
676
- TYPED_TEST (MutatorTypedTest, UnknownSerialization ) {
679
+ TYPED_TEST (MutatorTypedTest, UnknownFieldTextFormat ) {
677
680
typename TestFixture::Message parsed;
678
- EXPECT_TRUE (ParseTextMessage (kUnknownField , &parsed));
679
- EXPECT_NE (SaveMessageAsText (parsed), kUnknownField );
681
+ EXPECT_TRUE (ParseTextMessage (kUnknownFieldInput , &parsed));
682
+ EXPECT_EQ (SaveMessageAsText (parsed), kUnknownFieldExpected );
680
683
}
681
684
682
685
TYPED_TEST (MutatorTypedTest, DeepRecursion) {
You can’t perform that action at this time.
0 commit comments