diff --git a/test/ruby/test_array.rb b/test/ruby/test_array.rb index 39bf635079..1ff13c7736 100644 --- a/test/ruby/test_array.rb +++ b/test/ruby/test_array.rb @@ -1447,6 +1447,8 @@ class TestArray < Test::Unit::TestCase assert_equal(nil, a.slice!(-6,2)) assert_equal(@cls[1, 2, 3, 4, 5], a) + assert_equal("[2, 3]", [1,2,3].slice!(1,10000).inspect, "moved from btest/knownbug") + assert_raise(ArgumentError) { @cls[1].slice! } assert_raise(ArgumentError) { @cls[1].slice!(0, 0, 0) } end diff --git a/test/ruby/test_string.rb b/test/ruby/test_string.rb index 1b23d832f2..3dadc8e04b 100644 --- a/test/ruby/test_string.rb +++ b/test/ruby/test_string.rb @@ -1700,7 +1700,6 @@ CODE assert_equal([], "".split(//, 1)) - assert_equal("[2, 3]", [1,2,3].slice!(1,10000).inspect, "moved from btest/knownbug") ensure $; = fs end