From 37679ee584e409088a2f083594e3c4ccba486e13 Mon Sep 17 00:00:00 2001 From: akr Date: Mon, 25 Jan 2010 23:12:50 +0000 Subject: supress warnings. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26418 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- test/ruby/test_integer.rb | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'test/ruby/test_integer.rb') 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 -- cgit v1.2.3