Explorar o código

Fix TextFormatMapTest.DynamicMessage issue#5136

Clean up a multi-line string to conform to Unix line endings.

Signed-off-by: Abhishek Jain <abhishek.jain3@huawei.com>
Abhishek Jain %!s(int64=4) %!d(string=hai) anos
pai
achega
9505222a24
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      src/google/protobuf/map_test.cc

+ 1 - 0
src/google/protobuf/map_test.cc

@@ -3528,6 +3528,7 @@ TEST(TextFormatMapTest, DynamicMessage) {
                                                   "testdata/map_test_data.txt"),
                         &expected_text, true));
 
+  CleanStringLineEndings(&expected_text, false);
   EXPECT_EQ(message->DebugString(), expected_text);
 }