[flori/json] Removed code for Ruby 1.8
https://github.com/flori/json/commit/7f9c29038d
This commit is contained in:
parent
4a90c93427
commit
923d3517f1
@ -86,9 +86,7 @@ class JSONEncodingTest < Test::Unit::TestCase
|
|||||||
def test_chars
|
def test_chars
|
||||||
(0..0x7f).each do |i|
|
(0..0x7f).each do |i|
|
||||||
json = '["\u%04x"]' % i
|
json = '["\u%04x"]' % i
|
||||||
if RUBY_VERSION >= "1.9."
|
i = i.chr
|
||||||
i = i.chr
|
|
||||||
end
|
|
||||||
assert_equal i, parse(json).first[0]
|
assert_equal i, parse(json).first[0]
|
||||||
if i == ?\b
|
if i == ?\b
|
||||||
generated = generate(["" << i])
|
generated = generate(["" << i])
|
||||||
|
Loading…
x
Reference in New Issue
Block a user