stleary / JSON-Java-unit-test

Junit test harness to validate the JSON-Java GitHub project code.
Apache License 2.0
28 stars 45 forks source link

Correct expected position information in error messages #74

Closed johnjaylward closed 7 years ago

johnjaylward commented 7 years ago

see https://github.com/stleary/JSON-java/pull/352 or https://github.com/stleary/JSON-java/pull/350 for the changes from PR 352 plus android support changes.

The current tests on Master are verifying error messages from the tokeners, but using incorrect position information. This PR corrects the position information in the tests, as well as adds new tests to verify position information.

This PR will fail on the current master branch of JSON-Java until one of the above mentioned PR for JSON-Java are merged.

stleary commented 7 years ago

Merge after stleary/JSON-java#352 is committed.