mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Disable spec of pattern matching is experimental
since 3.1
This commit is contained in:
parent
2a5b5ff49a
commit
f11f9fc921
1 changed files with 16 additions and 14 deletions
|
@ -41,6 +41,7 @@ ruby_version_is "2.7" do
|
||||||
end
|
end
|
||||||
|
|
||||||
describe "warning" do
|
describe "warning" do
|
||||||
|
ruby_version_is ""..."3.1" do
|
||||||
before :each do
|
before :each do
|
||||||
ruby_version_is ""..."3.0" do
|
ruby_version_is ""..."3.0" do
|
||||||
@src = 'case [0, 1]; in [a, b]; end'
|
@src = 'case [0, 1]; in [a, b]; end'
|
||||||
|
@ -61,6 +62,7 @@ ruby_version_is "2.7" do
|
||||||
-> { eval @src }.should complain(/pattern matching is experimental, and the behavior may change in future versions of Ruby!/i)
|
-> { eval @src }.should complain(/pattern matching is experimental, and the behavior may change in future versions of Ruby!/i)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
end
|
||||||
|
|
||||||
it "binds variables" do
|
it "binds variables" do
|
||||||
eval(<<~RUBY).should == 1
|
eval(<<~RUBY).should == 1
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue