Revert "explain position information numbers in syntax exception"

This reverts commit d69d5e284b.
This commit is contained in:
Simulant
2024-03-27 20:35:43 +01:00
parent 78cdb3d0d6
commit 0fcf352848
10 changed files with 84 additions and 84 deletions
+5 -5
View File
@@ -93,7 +93,7 @@ public class XMLTest {
fail("Expecting a JSONException");
} catch (JSONException e) {
assertEquals("Expecting an exception message",
"Misshaped tag at index 176 [character number 14 in line 4]",
"Misshaped tag at 176 [character 14 line 4]",
e.getMessage());
}
}
@@ -118,7 +118,7 @@ public class XMLTest {
fail("Expecting a JSONException");
} catch (JSONException e) {
assertEquals("Expecting an exception message",
"Misshaped meta tag at index 214 [character number 12 in line 7]",
"Misshaped meta tag at 214 [character 12 line 7]",
e.getMessage());
}
}
@@ -143,7 +143,7 @@ public class XMLTest {
fail("Expecting a JSONException");
} catch (JSONException e) {
assertEquals("Expecting an exception message",
"Misshaped meta tag at index 213 [character number 12 in line 7]",
"Misshaped meta tag at 213 [character 12 line 7]",
e.getMessage());
}
}
@@ -168,7 +168,7 @@ public class XMLTest {
fail("Expecting a JSONException");
} catch (JSONException e) {
assertEquals("Expecting an exception message",
"Misplaced '<' at index 193 [character number 4 in line 6]",
"Misplaced '<' at 193 [character 4 line 6]",
e.getMessage());
}
}
@@ -193,7 +193,7 @@ public class XMLTest {
fail("Expecting a JSONException");
} catch (JSONException e) {
assertEquals("Expecting an exception message",
"Expected 'CDATA[' at index 204 [character number 11 in line 5]",
"Expected 'CDATA[' at 204 [character 11 line 5]",
e.getMessage());
}
}