summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYusuke Endoh <mame@ruby-lang.org>2020-10-21 23:36:49 +0900
committerHiroshi SHIBATA <hsbt@ruby-lang.org>2020-11-12 21:40:07 +0900
commitc03f39ab4c8541de88408dfc2f272487cb2f31f5 (patch)
tree497fd67e6bcb104849ca61aa433a799fdb294605
parentca6c13549e444939233e0bf48d06eea51c136bd8 (diff)
downloadjson-c03f39ab4c8541de88408dfc2f272487cb2f31f5.tar.gz
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 ```
-rw-r--r--tests/json_parser_test.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/json_parser_test.rb b/tests/json_parser_test.rb
index c7f1a5f..dce693e 100644
--- a/tests/json_parser_test.rb
+++ b/tests/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