Commit 560983ad authored by Jon Skeet's avatar Jon Skeet

Made TextFormatTest line-ending neutral

parent 734746ed
...@@ -91,7 +91,7 @@ public class TextFormatTest extends TestCase { ...@@ -91,7 +91,7 @@ public class TextFormatTest extends TestCase {
// C++ and Java TextFormat classes, so we need to conform. // C++ and Java TextFormat classes, so we need to conform.
javaText = javaText.replace(".0\n", "\n"); javaText = javaText.replace(".0\n", "\n");
assertEquals(allFieldsSetText, javaText); assertEquals(allFieldsSetText.replace("\r\n", "\n"), javaText.replace("\r\n", "\n"));
} }
/** Print TestAllExtensions and compare with golden file. */ /** Print TestAllExtensions and compare with golden file. */
...@@ -103,7 +103,7 @@ public class TextFormatTest extends TestCase { ...@@ -103,7 +103,7 @@ public class TextFormatTest extends TestCase {
// C++ and Java TextFormat classes, so we need to conform. // C++ and Java TextFormat classes, so we need to conform.
javaText = javaText.replace(".0\n", "\n"); javaText = javaText.replace(".0\n", "\n");
assertEquals(allExtensionsSetText, javaText); assertEquals(allExtensionsSetText.replace("\r\n", "\n"), javaText.replace("\r\n", "\n"));
} }
public void testPrintUnknownFields() throws Exception { public void testPrintUnknownFields() throws Exception {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment