1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

Revert of 37541 "* test/ruby/test_enumerator.rb: Add test to shed light upon the bug"

[#7298]
This reverts commit 0ab21f9572.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37609 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
marcandre 2012-11-10 04:03:30 +00:00
parent e91c04e2e9
commit 52c50bf5f5

View file

@ -67,9 +67,6 @@ class TestEnumerator < Test::Unit::TestCase
assert_match 'Enumerator.new without a block is deprecated', err
assert_equal([1, 2, 3], Enumerator.new { |y| i = 0; loop { y << (i += 1) } }.take(3))
assert_raise(ArgumentError) { Enumerator.new }
assert_equal([1, 2, 3], Enumerator.new([1, 2, 3]).take(3))
bug7298 = '[ruby-core:49001]'
assert_equal([4, 5, 6], Enumerator.new([4, 5, 6]){|y| i = 0; loop { y << (i+=1) } }.take(3))
end
def test_initialize_copy