summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-07-03 04:44:53 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-07-03 04:44:53 +0000
commit6343e30c147dc00e34e9d45ea3f74f94873b9709 (patch)
treefb58e362055d888ad570a357c7c7095aebf3ab3a /test
parentb582f2a1233b1ca59e707b489bb0187349f500b7 (diff)
* array.c (ary_reject_bang): should not remove elements which are
not yielded. [Bug #2545] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32373 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test')
-rw-r--r--test/ruby/test_array.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/ruby/test_array.rb b/test/ruby/test_array.rb
index a22412c70c..64524768e1 100644
--- a/test/ruby/test_array.rb
+++ b/test/ruby/test_array.rb
@@ -611,7 +611,7 @@ class TestArray < Test::Unit::TestCase
bug2545 = '[ruby-core:27366]'
a = @cls[ 5, 6, 7, 8, 9, 10 ]
assert_equal(9, a.delete_if {|i| break i if i > 8; i < 7})
- assert_equal(@cls[7, 8], a, bug2545)
+ assert_equal(@cls[7, 8, 9, 10], a, bug2545)
end
def test_dup
@@ -1096,7 +1096,7 @@ class TestArray < Test::Unit::TestCase
bug2545 = '[ruby-core:27366]'
a = @cls[ 5, 6, 7, 8, 9, 10 ]
assert_equal(9, a.reject! {|i| break i if i > 8; i < 7})
- assert_equal(@cls[7, 8], a, bug2545)
+ assert_equal(@cls[7, 8, 9, 10], a, bug2545)
end
def test_replace