1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

test/json/json_parser_test.rb: suppress warnings

http://rubyci.s3.amazonaws.com/ubuntu/ruby-master/log/20201021T123003Z.log.html.gz
```
/home/chkbuild/chkbuild/tmp/build/20201021T123003Z/ruby/test/json/json_parser_test.rb:227: warning: ambiguous first argument; put parentheses or a space even after `-' operator
/home/chkbuild/chkbuild/tmp/build/20201021T123003Z/ruby/test/json/json_parser_test.rb:228: warning: ambiguous first argument; put parentheses or a space even after `-' operator
```
This commit is contained in:
Yusuke Endoh 2020-10-21 23:36:49 +09:00
parent 4414031735
commit 762be87759

View file

@ -224,8 +224,8 @@ class JSONParserTest < Test::Unit::TestCase
assert_predicate parse('"foo"', :freeze => true), :frozen?
if string_deduplication_available?
assert_same -'foo', parse('"foo"', :freeze => true)
assert_same -'foo', parse('{"foo": 1}', :freeze => true).keys.first
assert_same(-'foo', parse('"foo"', :freeze => true))
assert_same(-'foo', parse('{"foo": 1}', :freeze => true).keys.first)
end
end