We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents e6d37c4 + 4dfd779 commit d677a99Copy full SHA for d677a99
src/test/java/org/json/junit/XMLTest.java
@@ -1234,7 +1234,7 @@ public void testIndentComplicatedJsonObjectWithArrayAndWithConfig(){
1234
for (int numRead; (numRead = in.read(buffer, 0, buffer.length)) > 0; ) {
1235
expected.append(buffer, 0, numRead);
1236
}
1237
- assertEquals(expected.toString(), actualString);
+ assertTrue(XML.toJSONObject(expected.toString()).similar(XML.toJSONObject(actualString)));
1238
1239
} catch (IOException e) {
1240
fail("file writer error: " +e.getMessage());
0 commit comments