diff options
author | Jean Boussier <[email protected]> | 2025-05-12 15:41:12 +0200 |
---|---|---|
committer | Hiroshi SHIBATA <[email protected]> | 2025-05-13 14:12:22 +0900 |
commit | cd7495a1d0e003360c96bb9746c1a8e6b3c6901c (patch) | |
tree | 9a898c4c544a71f2cc8031ea7f4fbe2c3ecbfde1 /test/json/json_parser_test.rb | |
parent | 8cc1aa82f1a14b9d1822562eb943e7ffb41b426e (diff) |
[ruby/json] Further improve parsing errors
Report EOF when applicable instead of an empty fragment.
Also stop fragment extraction on first whitespace.
https://github.com/ruby/json/commit/cc1daba860
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/13310
Diffstat (limited to 'test/json/json_parser_test.rb')
-rw-r--r-- | test/json/json_parser_test.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/json/json_parser_test.rb b/test/json/json_parser_test.rb index 7cfdfc69d6..befc80c958 100644 --- a/test/json/json_parser_test.rb +++ b/test/json/json_parser_test.rb @@ -646,7 +646,7 @@ class JSONParserTest < Test::Unit::TestCase JSON.parse('{"input":{"firstName":"Bob","lastName":"Mob","email":"[email protected]"}') end if RUBY_ENGINE == "ruby" - assert_equal %(expected ',' or '}' after object value, got: '' at line 1 column 72), error.message + assert_equal %(expected ',' or '}' after object value, got: EOF at line 1 column 72), error.message end end |