summaryrefslogtreecommitdiff
path: root/spec/ruby
diff options
context:
space:
mode:
authorHiroshi SHIBATA <hsbt@ruby-lang.org>2024-11-06 12:36:38 +0900
committerHiroshi SHIBATA <hsbt@ruby-lang.org>2024-11-06 15:35:34 +0900
commit2ad331acf6b7990361ead9d03382f4198206610a (patch)
tree4e67acb61a3f7fec3c81da1b50a7046e755dd8d3 /spec/ruby
parente548ff67ea1a769d79aece363fe93ce113b3a07c (diff)
Partly reverted from 449899b38314d0ecbe61e42d34398bdf2561b8e9
Diffstat (limited to 'spec/ruby')
-rw-r--r--spec/ruby/core/string/index_spec.rb11
1 files changed, 0 insertions, 11 deletions
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