mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Update to ruby/spec@0fe33ac
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@61504 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
0f989b87a0
commit
a34db218ad
162 changed files with 1267 additions and 621 deletions
|
@ -7,7 +7,7 @@ describe "Regexps with back-references" do
|
|||
$~.to_a.should == ["ll"]
|
||||
end
|
||||
|
||||
it "saves captures in numbered $[1-9] variables" do
|
||||
it "saves captures in numbered $[1-N] variables" do
|
||||
"1234567890" =~ /(1)(2)(3)(4)(5)(6)(7)(8)(9)(0)/
|
||||
$~.to_a.should == ["1234567890", "1", "2", "3", "4", "5", "6", "7", "8", "9", "0"]
|
||||
$1.should == "1"
|
||||
|
@ -19,6 +19,7 @@ describe "Regexps with back-references" do
|
|||
$7.should == "7"
|
||||
$8.should == "8"
|
||||
$9.should == "9"
|
||||
$10.should == "0"
|
||||
end
|
||||
|
||||
it "will not clobber capture variables across threads" do
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue