fix Read*BinaryClassTest test on windows
This commit is contained in:
@@ -74,7 +74,7 @@ class NamespaceComparator {
|
|||||||
if (false) {
|
if (false) {
|
||||||
Files.write(serialized, txtFile, Charset.forName("utf-8"));
|
Files.write(serialized, txtFile, Charset.forName("utf-8"));
|
||||||
} else {
|
} 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
|
// compare with hardcopy: make sure nothing is lost in output
|
||||||
Assert.assertEquals(expected, serialized);
|
Assert.assertEquals(expected, serialized);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user