We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
headius
Learn more about funding links in repositories.
Report abuse
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
JRuby master running updated Ruby 2.3.1 tests.
The following test was added:
def test_wrong_inputs assert_raise(ParserError) { JSON.parse('"foo"') } assert_raise(ParserError) { JSON.parse('123') } assert_raise(ParserError) { JSON.parse('[] bla') } assert_raise(ParserError) { JSON.parse('[] 1') } assert_raise(ParserError) { JSON.parse('[] []') } assert_raise(ParserError) { JSON.parse('[] {}') } assert_raise(ParserError) { JSON.parse('{} []') } assert_raise(ParserError) { JSON.parse('{} {}') } assert_raise(ParserError) { JSON.parse('[NULL]') } assert_raise(ParserError) { JSON.parse('[FALSE]') } assert_raise(ParserError) { JSON.parse('[TRUE]') } assert_raise(ParserError) { JSON.parse('[07] ') } assert_raise(ParserError) { JSON.parse('[0a]') } assert_raise(ParserError) { JSON.parse('[1.]') } assert_raise(ParserError) { JSON.parse(' ') } end
We fail immediately on the first line.
The text was updated successfully, but these errors were encountered:
Copy @flori since he still maintains the json library.
Sorry, something went wrong.
According to RFC 7159 the first two assertions are incorrect now and can be deleted.
Updated json gem + tests no longer has this issue.
No branches or pull requests
Environment
JRuby master running updated Ruby 2.3.1 tests.
Expected Behavior
The following test was added:
Actual Behavior
We fail immediately on the first line.
The text was updated successfully, but these errors were encountered: