mirror of
https://github.com/fankes/JSON-java-compat.git
synced 2025-09-06 18:55:30 +08:00
Updates exception expected message
This commit is contained in:
@@ -90,7 +90,7 @@ public class JSONArrayTest {
|
|||||||
assertNull("Should throw an exception", new JSONArray("["));
|
assertNull("Should throw an exception", new JSONArray("["));
|
||||||
} catch (JSONException e) {
|
} catch (JSONException e) {
|
||||||
assertEquals("Expected an exception message",
|
assertEquals("Expected an exception message",
|
||||||
"A JSONArray text must start with '[' at 0 [character 1 line 1]",
|
"Expected a ',' or ']' at 1 [character 2 line 1]",
|
||||||
e.getMessage());
|
e.getMessage());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user