Skip to content

Commit

Permalink
fixes the broken XMLConfigurationTest cases
Browse files Browse the repository at this point in the history
  • Loading branch information
Sean Leary authored and Sean Leary committed Apr 28, 2024
1 parent f4944fb commit fa2f340
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/test/java/org/json/junit/XMLConfigurationTest.java
Expand Up @@ -268,11 +268,14 @@ public void shouldHandleSimpleXML() {
" </address>\n"+
"</addresses>";

// TODO: This test failed in strictMode due to -23x.45 not being surrounded by quotes
// It should probably be split into two tests, one of which does not run in strictMode.
// TBD.
String expectedStr =
"{\"addresses\":{\"address\":{\"street\":\"[CDATA[Baker street 5]\","+
"\"name\":\"Joe Tester\",\"NothingHere\":\"\",TrueValue:true,\n"+
"\"name\":\"Joe Tester\",\"NothingHere\":\"\",\"TrueValue\":true,\n"+
"\"FalseValue\":false,\"NullValue\":null,\"PositiveValue\":42,\n"+
"\"NegativeValue\":-23,\"DoubleValue\":-23.45,\"Nan\":-23x.45,\n"+
"\"NegativeValue\":-23,\"DoubleValue\":-23.45,\"Nan\":\"-23x.45\",\n"+
"\"ArrayOfNum\":\"1, 2, 3, 4.1, 5.2\"\n"+
"},\"xsi:noNamespaceSchemaLocation\":"+
"\"test.xsd\",\"xmlns:xsi\":\"http://www.w3.org/2001/"+
Expand Down

0 comments on commit fa2f340

Please sign in to comment.