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 | 88311025872a66e746f552d94df23b1c1f2a06e7 (patch) | |
tree | 43749f8d22d1fcaa394958874eb83e9b556ba82b | |
parent | 4793e6f30f37084e9518b1ad1b73274642c1e72f (diff) | |
download | ruby-88311025872a66e746f552d94df23b1c1f2a06e7.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
-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 |