test/ruby/test_hash.rb: suppress syntax warning

Avoid "ambiguous first argument; put parentheses or a space even after
`-' operator" warning in assert_in_out_err. Fixes r56992.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56993 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
rhe 2016-12-06 06:14:16 +00:00
Родитель 5714a26b90
Коммит 2a45604772
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -1334,7 +1334,7 @@ class TestHash < Test::Unit::TestCase
def assert_hash_random(obj, dump = obj.inspect) def assert_hash_random(obj, dump = obj.inspect)
a = [obj.hash.to_s] a = [obj.hash.to_s]
3.times { 3.times {
assert_in_out_err(["-e", "print #{dump}.hash"], "") do |r, e| assert_in_out_err(["-e", "print (#{dump}).hash"], "") do |r, e|
a += r a += r
assert_equal([], e) assert_equal([], e)
end end