mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Update to ruby/spec@335eb9b
This commit is contained in:
parent
3dd63108b0
commit
b49307c701
22 changed files with 556 additions and 344 deletions
|
@ -115,6 +115,12 @@ 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)
|
||||
end
|
||||
|
||||
it "supports (?<! ) (negative lookbehind)" do
|
||||
/foo.(?<!\d)/.match("foo1 fooA").to_a.should == ["fooA"]
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue