mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* 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
This commit is contained in:
parent
ab5545ee57
commit
173aacf9ff
1 changed files with 1 additions and 2 deletions
|
@ -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 = []
|
||||
|
|
Loading…
Reference in a new issue