mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
supress warnings.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26418 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
a967f738c8
commit
37679ee584
20 changed files with 77 additions and 77 deletions
|
@ -150,10 +150,10 @@ class TestInteger < Test::Unit::TestCase
|
|||
1.upto(0) {|x| a << x }
|
||||
assert_equal([], a)
|
||||
|
||||
x = 2**30 - 1
|
||||
y = 2**30 - 1
|
||||
a = []
|
||||
x.upto(x+2) {|x| a << x }
|
||||
assert_equal([x, x+1, x+2], a)
|
||||
y.upto(y+2) {|x| a << x }
|
||||
assert_equal([y, y+1, y+2], a)
|
||||
end
|
||||
|
||||
def test_downto
|
||||
|
@ -165,10 +165,10 @@ class TestInteger < Test::Unit::TestCase
|
|||
1.downto(2) {|x| a << x }
|
||||
assert_equal([], a)
|
||||
|
||||
x = -(2**30)
|
||||
y = -(2**30)
|
||||
a = []
|
||||
x.downto(x-2) {|x| a << x }
|
||||
assert_equal([x, x-1, x-2], a)
|
||||
y.downto(y-2) {|x| a << x }
|
||||
assert_equal([y, y-1, y-2], a)
|
||||
end
|
||||
|
||||
def test_times
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue