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

ruby-changes:34364

From: hsbt <ko1@a...>
Date: Mon, 16 Jun 2014 18:18:06 +0900 (JST)
Subject: [ruby-changes:34364] hsbt:r46445 (trunk): * test/date/test_date_arith.rb: remove unused block argument.

hsbt	2014-06-16 18:17:55 +0900 (Mon, 16 Jun 2014)

  New Revision: 46445

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

  Log:
    * test/date/test_date_arith.rb: remove unused block argument.

  Modified files:
    trunk/test/date/test_date_arith.rb
Index: test/date/test_date_arith.rb
===================================================================
--- test/date/test_date_arith.rb	(revision 46444)
+++ test/date/test_date_arith.rb	(revision 46445)
@@ -205,7 +205,7 @@ class TestDateArith < Test::Unit::TestCa https://github.com/ruby/ruby/blob/trunk/test/date/test_date_arith.rb#L205
     p = Date.new(2001,1,14)
     q = Date.new(2001,1,7)
     i = 0
-    p.downto(q) do |d|
+    p.downto(q) do
       i += 1
     end
     assert_equal(8, i)
@@ -222,7 +222,7 @@ class TestDateArith < Test::Unit::TestCa https://github.com/ruby/ruby/blob/trunk/test/date/test_date_arith.rb#L222
     p = Date.new(2001,1,14)
     q = Date.new(2001,1,21)
     i = 0
-    p.upto(q) do |d|
+    p.upto(q) do
       i += 1
     end
     assert_equal(8, i)
@@ -239,13 +239,13 @@ class TestDateArith < Test::Unit::TestCa https://github.com/ruby/ruby/blob/trunk/test/date/test_date_arith.rb#L239
     p = Date.new(2001,1,14)
     q = Date.new(2001,1,21)
     i = 0
-    p.step(q, 2) do |d|
+    p.step(q, 2) do
       i += 1
     end
     assert_equal(4, i)
 
     i = 0
-    p.step(q) do |d|
+    p.step(q) do
       i += 1
     end
     assert_equal(8, i)

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

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