1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00
This commit is contained in:
Benoit Daloze 2021-07-29 22:11:21 +02:00
parent 15d05f8120
commit 6998d75824
186 changed files with 3956 additions and 3339 deletions

View file

@ -115,10 +115,11 @@ describe "Literal Regexps" do
/foo.(?<=\d)/.match("fooA foo1").to_a.should == ["foo1"]
end
# https://bugs.ruby-lang.org/issues/13671
it "raises a RegexpError for lookbehind with specific characters" do
r = Regexp.new("(?<!dss)", Regexp::IGNORECASE)
-> { r =~ "" }.should raise_error(RegexpError)
ruby_bug "#13671", ""..."3.2" do # https://bugs.ruby-lang.org/issues/13671
it "handles a lookbehind with ss characters" do
r = Regexp.new("(?<!dss)", Regexp::IGNORECASE)
r.should =~ ""
end
end
it "supports (?<! ) (negative lookbehind)" do