1
0
Fork 0
mirror of https://github.com/ethauvin/JSON-java.git synced 2025-06-18 08:20:52 -07:00

More test corrections for correct position reports in error messages

This commit is contained in:
John J. Aylward 2017-06-21 19:56:00 -04:00
parent 971614ac8b
commit 0e612ba8a4
7 changed files with 92 additions and 77 deletions

View file

@ -74,9 +74,9 @@ public class JSONArrayTest {
try {
assertNull("Should throw an exception", new JSONArray(str));
} catch (JSONException e) {
assertTrue("Expected an exception message",
"A JSONArray text must start with '[' at 1 [character 2 line 1]".
equals(e.getMessage()));
assertEquals("Expected an exception message",
"A JSONArray text must start with '[' at 0 [character 1 line 1]",
e.getMessage());
}
}