mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Suppress "One-line pattern matching is experimental" warning
This commit is contained in:
parent
e0e2492cd3
commit
7282f3113d
1 changed files with 9 additions and 4 deletions
|
@ -11,10 +11,15 @@ ruby_version_is "2.7" do
|
|||
|
||||
ruby_version_is "3.0" do
|
||||
it "can be standalone assoc operator that deconstructs value" do
|
||||
eval(<<-RUBY).should == [0, 1]
|
||||
[0, 1] => [a, b]
|
||||
[a, b]
|
||||
RUBY
|
||||
$VERBOSE, verbose = nil, $VERBOSE
|
||||
begin
|
||||
eval(<<-RUBY).should == [0, 1]
|
||||
[0, 1] => [a, b]
|
||||
[a, b]
|
||||
RUBY
|
||||
ensure
|
||||
$VERBOSE = verbose
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue