diff options
author | rhe <rhe@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2016-12-06 06:14:16 +0000 |
---|---|---|
committer | rhe <rhe@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2016-12-06 06:14:16 +0000 |
commit | 2a456047729c0c5450031220fe9a747e1b6f366d (patch) | |
tree | 43749f8d22d1fcaa394958874eb83e9b556ba82b /test/ruby | |
parent | 5714a26b90b40846733fb2a5764d4c61285f5ea1 (diff) | |
download | ruby-2a456047729c0c5450031220fe9a747e1b6f366d.tar.gz |
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
Diffstat (limited to 'test/ruby')
-rw-r--r-- | test/ruby/test_hash.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/ruby/test_hash.rb b/test/ruby/test_hash.rb index 679bd2702a..770d0b863e 100644 --- a/test/ruby/test_hash.rb +++ b/test/ruby/test_hash.rb @@ -1334,7 +1334,7 @@ class TestHash < Test::Unit::TestCase def assert_hash_random(obj, dump = obj.inspect) a = [obj.hash.to_s] 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 assert_equal([], e) end |