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:
parent
4414031735
commit
762be87759
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue