mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Merge json-2.0.4.
* https://github.com/flori/json/releases/tag/v2.0.4
* 09fabeb03e/CHANGES.md (2017-03-23-204)
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58323 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
76ab146ca3
commit
83735ba29a
9 changed files with 48 additions and 34 deletions
|
@ -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_raises(JSON::ParserError) { parse('"\u"') }
|
||||
assert_raises(JSON::ParserError) { parse('"\ud800"') }
|
||||
end
|
||||
|
||||
def test_chars
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue