We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f625a9f commit c424265Copy full SHA for c424265
spec/ruby/core/matchdata/begin_spec.rb
@@ -37,7 +37,7 @@
37
match_data.begin(obj).should == 2
38
end
39
40
- it "raises IndexError if index is out of matches" do
+ it "raises IndexError if index is out of bounds" do
41
match_data = /(?<f>foo)(?<b>bar)/.match("foobar")
42
43
-> {
spec/ruby/core/matchdata/byteoffset_spec.rb
@@ -72,7 +72,7 @@ def obj.to_int; 2; end
72
}.should raise_error(IndexError, "undefined group name reference: y")
73
74
75
76
m = /(?<f>foo)(?<b>bar)/.match("foobar")
77
78
0 commit comments