Skip to content

Commit fa2f340

Browse files
Sean LearySean Leary
authored andcommitted
fixes the broken XMLConfigurationTest cases
1 parent f4944fb commit fa2f340

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/test/java/org/json/junit/XMLConfigurationTest.java

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -268,11 +268,14 @@ public void shouldHandleSimpleXML() {
268268
" </address>\n"+
269269
"</addresses>";
270270

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

0 commit comments

Comments
 (0)