We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f346203 commit 4dfd779Copy full SHA for 4dfd779
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