Skip to content

Commit

Permalink
Removed code for Ruby 1.8
Browse files Browse the repository at this point in the history
  • Loading branch information
hsbt committed Sep 5, 2023
1 parent 06caa63 commit 7f9c290
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions tests/json_encoding_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -86,9 +86,7 @@ def test_unicode
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])
Expand Down

0 comments on commit 7f9c290

Please sign in to comment.