summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornagachika <nagachika@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-09-30 12:32:04 +0000
committernagachika <nagachika@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-09-30 12:32:04 +0000
commit173aacf9ff5089fef416631ae9c1c0b5e88be628 (patch)
tree8e6d903f954de59e0e205d32e177f8dc09d4a080
parentab5545ee579d54f7cf30ce04a2e1bf3308cbddd7 (diff)
* test/ruby/test_enumerator.rb (enum_test, test_inspect): remove unused
variable. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37060 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--test/ruby/test_enumerator.rb3
1 files changed, 1 insertions, 2 deletions
diff --git a/test/ruby/test_enumerator.rb b/test/ruby/test_enumerator.rb
index f26514b..8b33a5e 100644
--- a/test/ruby/test_enumerator.rb
+++ b/test/ruby/test_enumerator.rb
@@ -13,7 +13,6 @@ class TestEnumerator < Test::Unit::TestCase
end
def enum_test obj
- i = 0
obj.map{|e|
e
}.sort
@@ -349,7 +348,7 @@ class TestEnumerator < Test::Unit::TestCase
e = (0..10).each_cons(2)
assert_equal("#<Enumerator: 0..10:each_cons(2)>", e.inspect)
- e = Enumerator.new {|y| x = y.yield; 10 }
+ e = Enumerator.new {|y| y.yield; 10 }
assert_match(/\A#<Enumerator: .*:each>/, e.inspect)
a = []