mirror of
https://github.com/ruby/ruby.git
synced 2025-08-26 06:25:31 +02:00
Update to ruby/spec@032022ca
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58718 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
d593aed7b7
commit
a5b83b03ad
47 changed files with 254 additions and 172 deletions
|
@ -139,7 +139,7 @@ describe "Literal Regexps" do
|
|||
pattern.should_not =~ 'T'
|
||||
end
|
||||
|
||||
it "supports conditional regular expressions with positional capture groups" do
|
||||
it "supports conditional regular expressions with named capture groups" do
|
||||
pattern = /\A(?<word>foo)?(?(<word>)(T)|(F))\z/
|
||||
|
||||
pattern.should =~ 'fooT'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue