diff options
Diffstat (limited to 'test')
-rw-r--r-- | test/ruby/test_array.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/ruby/test_array.rb b/test/ruby/test_array.rb index 8f1d53d933..28d3e4156b 100644 --- a/test/ruby/test_array.rb +++ b/test/ruby/test_array.rb @@ -610,7 +610,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(9, a.delete_if {|i| break i if i > 8; assert_equal(a[0], i) || true if i < 7}) assert_equal(@cls[7, 8, 9, 10], a, bug2545) end @@ -1098,7 +1098,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(9, a.reject! {|i| break i if i > 8; assert_equal(a[0], i) || true if i < 7}) assert_equal(@cls[7, 8, 9, 10], a, bug2545) end |