diff options
author | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2010-01-25 23:12:50 +0000 |
---|---|---|
committer | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2010-01-25 23:12:50 +0000 |
commit | 37679ee584e409088a2f083594e3c4ccba486e13 (patch) | |
tree | ea8390a11414859640d50b21293a2190d99f73ce /test/ruby/test_integer.rb | |
parent | a967f738c83b960f23f5b04403a17ca37f049e25 (diff) | |
download | ruby-37679ee584e409088a2f083594e3c4ccba486e13.tar.gz |
supress warnings.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26418 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/ruby/test_integer.rb')
-rw-r--r-- | test/ruby/test_integer.rb | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/test/ruby/test_integer.rb b/test/ruby/test_integer.rb index 840192c5ad..7f8212ebf0 100644 --- a/test/ruby/test_integer.rb +++ b/test/ruby/test_integer.rb @@ -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 |