From 2ad331acf6b7990361ead9d03382f4198206610a Mon Sep 17 00:00:00 2001 From: Hiroshi SHIBATA Date: Wed, 6 Nov 2024 12:36:38 +0900 Subject: Partly reverted from 449899b38314d0ecbe61e42d34398bdf2561b8e9 --- spec/ruby/core/string/index_spec.rb | 11 ----------- 1 file changed, 11 deletions(-) (limited to 'spec/ruby') diff --git a/spec/ruby/core/string/index_spec.rb b/spec/ruby/core/string/index_spec.rb index 93153e65f0..2eeee9be87 100644 --- a/spec/ruby/core/string/index_spec.rb +++ b/spec/ruby/core/string/index_spec.rb @@ -224,17 +224,6 @@ describe "String#index with Regexp" do $~.should == nil end - ruby_bug "#20421", ""..."3.2" do - it "always clear $~" do - "a".index(/a/) - $~.should_not == nil - - string = "blablabla" - string.index(/bla/, string.length + 1) - $~.should == nil - end - end - it "starts the search at the given offset" do "blablabla".index(/.{0}/, 5).should == 5 "blablabla".index(/.{1}/, 5).should == 5 -- cgit v1.2.3