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

ruby-changes:40686

From: nobu <ko1@a...>
Date: Fri, 27 Nov 2015 23:26:47 +0900 (JST)
Subject: [ruby-changes:40686] nobu:r52765 (trunk): test_parser_events.rb: suppress a warning

nobu	2015-11-27 23:26:28 +0900 (Fri, 27 Nov 2015)

  New Revision: 52765

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

  Log:
    test_parser_events.rb: suppress a warning
    
    * test/ripper/test_parser_events.rb (test_warn_cr_in_middle):
      remove unused variable to suppress assigned-but-unused-variable
      warning.

  Modified files:
    trunk/test/ripper/test_parser_events.rb
Index: test/ripper/test_parser_events.rb
===================================================================
--- test/ripper/test_parser_events.rb	(revision 52764)
+++ test/ripper/test_parser_events.rb	(revision 52765)
@@ -1323,7 +1323,7 @@ class TestRipper::ParserEvents < Test::U https://github.com/ruby/ruby/blob/trunk/test/ripper/test_parser_events.rb#L1323
 
   def test_warn_cr_in_middle
     fmt = nil
-    assert_warn("") {fmt, *args = warn("\r;")}
+    assert_warn("") {fmt, = warn("\r;")}
     assert_match(/encountered/, fmt)
   end
 end if ripper_test

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

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