explain position information numbers in syntax exception

This commit is contained in:
Simulant
2024-03-23 22:02:54 +01:00
parent f1c9d0787b
commit d69d5e284b
10 changed files with 90 additions and 90 deletions
+1 -1
View File
@@ -48,7 +48,7 @@ public class CookieTest {
fail("Expecting an exception");
} catch (JSONException e) {
assertEquals("Expecting an exception message",
"Expected '=' and instead saw '' at 25 [character 26 line 1]",
"Expected '=' and instead saw '' at index 25 [character number 26 in line 1]",
e.getMessage());
}
}