fix Read*BinaryClassTest test on windows

This commit is contained in:
Stepan Koltsov
2012-02-15 17:11:03 +04:00
parent cf7be620a7
commit 356ad9bd0b
@@ -74,7 +74,7 @@ class NamespaceComparator {
if (false) {
Files.write(serialized, txtFile, Charset.forName("utf-8"));
} else {
String expected = Files.toString(txtFile, Charset.forName("utf-8"));
String expected = Files.toString(txtFile, Charset.forName("utf-8")).replace("\r\n", "\n");
// compare with hardcopy: make sure nothing is lost in output
Assert.assertEquals(expected, serialized);
}