mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* test/date/test_date_arith.rb: remove unused block argument.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46445 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
ea7c1f4dc6
commit
9761965d05
1 changed files with 4 additions and 4 deletions
|
@ -205,7 +205,7 @@ class TestDateArith < Test::Unit::TestCase
|
|||
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::TestCase
|
|||
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::TestCase
|
|||
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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue