mirror of
https://github.com/fankes/JSON-java-compat.git
synced 2025-12-13 04:51:03 +08:00
Merge pull request #782 from mureinik/XMLTest-windows
Fix XMLTest.testIndentComplicatedJsonObjectWithArrayAndWithConfig() for Windows - in the test
This commit is contained in:
@@ -1239,7 +1239,8 @@ public class XMLTest {
|
||||
for (int numRead; (numRead = in.read(buffer, 0, buffer.length)) > 0; ) {
|
||||
expected.append(buffer, 0, numRead);
|
||||
}
|
||||
assertEquals(expected.toString(), actualString.replaceAll("\\n|\\r\\n", System.getProperty("line.separator")));
|
||||
assertEquals(expected.toString().replaceAll("\\n|\\r\\n", System.lineSeparator()),
|
||||
actualString.replaceAll("\\n|\\r\\n", System.lineSeparator()));
|
||||
} finally {
|
||||
if (xmlStream != null) {
|
||||
xmlStream.close();
|
||||
|
||||
Reference in New Issue
Block a user