From 52c50bf5f57d6651d2e709a8cb472b19607601d3 Mon Sep 17 00:00:00 2001 From: marcandre Date: Sat, 10 Nov 2012 04:03:30 +0000 Subject: Revert of 37541 "* test/ruby/test_enumerator.rb: Add test to shed light upon the bug" [#7298] This reverts commit 0ab21f9572d5d5f76b908aaf3381cde32a64c4c8. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37609 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- test/ruby/test_enumerator.rb | 3 --- 1 file changed, 3 deletions(-) (limited to 'test') diff --git a/test/ruby/test_enumerator.rb b/test/ruby/test_enumerator.rb index 6c33e5db5d..896bf3f3f2 100644 --- a/test/ruby/test_enumerator.rb +++ b/test/ruby/test_enumerator.rb @@ -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 -- cgit v1.2.3