merge revision(s) 58323,58324:

Merge json-2.0.4.

	  * https://github.com/flori/json/releases/tag/v2.0.4
	  * 09fabeb03e/CHANGES.md (2017-03-23-204)
	Use `assert_raise` instead of `assert_raises`.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_4@58445 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nagachika 2017-04-22 07:29:01 +00:00
parent 4138651b66
commit d86d283fcb
10 changed files with 49 additions and 35 deletions

View file

@ -79,6 +79,8 @@ class JSONEncodingTest < Test::Unit::TestCase
json = '["\ud840\udc01"]'
assert_equal json, generate(utf8, :ascii_only => true)
assert_equal utf8, parse(json)
assert_raise(JSON::ParserError) { parse('"\u"') }
assert_raise(JSON::ParserError) { parse('"\ud800"') }
end
def test_chars