From fa2f3402d670062981d1ea8dcd75ae8dcebd15f5 Mon Sep 17 00:00:00 2001 From: Sean Leary Date: Sun, 28 Apr 2024 11:33:31 -0500 Subject: [PATCH] fixes the broken XMLConfigurationTest cases --- src/test/java/org/json/junit/XMLConfigurationTest.java | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/test/java/org/json/junit/XMLConfigurationTest.java b/src/test/java/org/json/junit/XMLConfigurationTest.java index e9714af..92a109a 100755 --- a/src/test/java/org/json/junit/XMLConfigurationTest.java +++ b/src/test/java/org/json/junit/XMLConfigurationTest.java @@ -268,11 +268,14 @@ public class XMLConfigurationTest { " \n"+ ""; + // 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/"+