[前][次][番号順一覧][スレッド一覧]

ruby-changes:39350

From: nobu <ko1@a...>
Date: Wed, 29 Jul 2015 21:36:34 +0900 (JST)
Subject: [ruby-changes:39350] nobu:r51431 (trunk): test_hash.rb: suppress warnings

nobu	2015-07-29 21:35:42 +0900 (Wed, 29 Jul 2015)

  New Revision: 51431

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=51431

  Log:
    test_hash.rb: suppress warnings
    
    * test/ruby/test_hash.rb (test_label_syntax): pass assertion
      message and suppress warnings.

  Modified files:
    trunk/test/ruby/test_hash.rb
Index: test/ruby/test_hash.rb
===================================================================
--- test/ruby/test_hash.rb	(revision 51430)
+++ test/ruby/test_hash.rb	(revision 51431)
@@ -1295,10 +1295,11 @@ class TestHash < Test::Unit::TestCase https://github.com/ruby/ruby/blob/trunk/test/ruby/test_hash.rb#L1295
 
     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

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]