diff --git a/src/test/java/org/json/junit/XMLTest.java b/src/test/java/org/json/junit/XMLTest.java
index 1748bb5..be47864 100644
--- a/src/test/java/org/json/junit/XMLTest.java
+++ b/src/test/java/org/json/junit/XMLTest.java
@@ -294,10 +294,7 @@ public class XMLTest {
"A €33"+
"A €22€"+
"some text ©"+
- // TODO: Looks like a strictMode regression where embedded single quotes are not handled correctly
- // Should be fixed.
- // "" " & ' < >"+
- "" " & < >"+
+ "" " & ' < >"+
"𝄢 𐅥" +
"";
String expectedStr =
@@ -306,10 +303,7 @@ public class XMLTest {
"\"euro\":\"A €33\"," +
"\"euroX\":\"A €22€\"," +
"\"unknown\":\"some text ©\"," +
- // TODO: Looks like a strictMode regression where embedded single quotes are not handled correctly
- // Should be fixed.
- // "\"known\":\"\\\" \\\" & ' < >\"," +
- "\"known\":\"\\\" \\\" & < >\"," +
+ "\"known\":\"\\\" \\\" & ' < >\"," +
"\"high\":\"𝄢 𐅥\""+
"}}";
@@ -323,12 +317,9 @@ public class XMLTest {
*/
@Test
public void testJsonToXmlEscape(){
- // TODO: Looks like a strictMode regression where embedded single quotes are not handled correctly
- // Should be fixed.
final String jsonSrc = "{\"amount\":\"10,00 €\","
+ "\"description\":\"Ação Válida\u0085\","
- // + "\"xmlEntities\":\"\\\" ' & < >\""
- + "\"xmlEntities\":\"\\\" & < >\""
+ + "\"xmlEntities\":\"\\\" ' & < >\""
+ "}";
JSONObject json = new JSONObject(jsonSrc);
String xml = XML.toString(json);
@@ -342,8 +333,7 @@ public class XMLTest {
assertTrue("Escaping á failed. Not found in XML output.", xml.contains("á"));
// test XML Entities converted
assertTrue("Escaping \" failed. Not found in XML output.", xml.contains("""));
- // TODO: restore when the regression is fixed
- // assertTrue("Escaping ' failed. Not found in XML output.", xml.contains("'"));
+ assertTrue("Escaping ' failed. Not found in XML output.", xml.contains("'"));
assertTrue("Escaping & failed. Not found in XML output.", xml.contains("&"));
assertTrue("Escaping < failed. Not found in XML output.", xml.contains("<"));
assertTrue("Escaping > failed. Not found in XML output.", xml.contains(">"));