diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-07-29 12:35:42 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-07-29 12:35:42 +0000 |
commit | b877f66a50db7cd3064691467f33f8ab2ca18e92 (patch) | |
tree | 0f5b28efe51cb7c8cd4a9a4c4148ae3923a3e098 | |
parent | 23d8fe4215eb63fd7734851f786a76ef8540c381 (diff) | |
download | ruby-b877f66a50db7cd3064691467f33f8ab2ca18e92.tar.gz |
test_hash.rb: suppress warnings
* test/ruby/test_hash.rb (test_label_syntax): pass assertion
message and suppress warnings.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51431 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r-- | test/ruby/test_hash.rb | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/test/ruby/test_hash.rb b/test/ruby/test_hash.rb index c37e072e21..076f76fe85 100644 --- a/test/ruby/test_hash.rb +++ b/test/ruby/test_hash.rb @@ -1295,10 +1295,11 @@ class TestHash < Test::Unit::TestCase feature4935 = '[ruby-core:37553] [Feature #4935]' x = 'world' - hash = assert_nothing_raised(SyntaxError) do + hash = assert_nothing_raised(SyntaxError, feature4935) do break eval(%q({foo: 1, "foo-bar": 2, "hello-#{x}": 3, 'hello-#{x}': 4, 'bar': {}})) end - assert_equal({:foo => 1, :'foo-bar' => 2, :'hello-world' => 3, :'hello-#{x}' => 4, :bar => {}}, hash) + assert_equal({:foo => 1, :'foo-bar' => 2, :'hello-world' => 3, :'hello-#{x}' => 4, :bar => {}}, hash, feature4935) + x = x end class TestSubHash < TestHash |