ruby-changes:63406
From: Yusuke <ko1@a...>
Date: Wed, 21 Oct 2020 23:38:04 +0900 (JST)
Subject: [ruby-changes:63406] 762be87759 (master): test/json/json_parser_test.rb: suppress warnings
https://git.ruby-lang.org/ruby.git/commit/?id=762be87759 From 762be87759385cd495246b13c8c8eff5c3db0a3c Mon Sep 17 00:00:00 2001 From: Yusuke Endoh <mame@r...> Date: Wed, 21 Oct 2020 23:36:49 +0900 Subject: 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 ``` 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 https://github.com/ruby/ruby/blob/trunk/test/json/json_parser_test.rb#L224 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 -- cgit v0.10.2 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/