[flori/json] Removed code for Ruby 1.8

https://github.com/flori/json/commit/7f9c29038d
This commit is contained in:
Hiroshi SHIBATA 2023-09-05 11:51:42 +09:00
parent 4a90c93427
commit 923d3517f1

View File

@ -86,9 +86,7 @@ class JSONEncodingTest < Test::Unit::TestCase
def test_chars
(0..0x7f).each do |i|
json = '["\u%04x"]' % i
if RUBY_VERSION >= "1.9."
i = i.chr
end
i = i.chr
assert_equal i, parse(json).first[0]
if i == ?\b
generated = generate(["" << i])