summaryrefslogtreecommitdiff
path: root/test/json
diff options
context:
space:
mode:
authorYusuke Endoh <mame@ruby-lang.org>2020-10-21 23:36:49 +0900
committerYusuke Endoh <mame@ruby-lang.org>2020-10-21 23:37:42 +0900
commit762be87759385cd495246b13c8c8eff5c3db0a3c (patch)
tree4806421aa96bdac02e1a5c03c39e88ca16779463 /test/json
parent441403173595ddf80d11c99ebe70d4c7ccd49188 (diff)
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 ```
Diffstat (limited to 'test/json')
-rw-r--r--test/json/json_parser_test.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/json/json_parser_test.rb b/test/json/json_parser_test.rb
index c7f1a5f..dce693e 100644
--- a/test/json/json_parser_test.rb
+++ b/test/json/json_parser_test.rb
@@ -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