зеркало из https://github.com/github/ruby.git
Suppress "One-line pattern matching is experimental" warning
This commit is contained in:
Родитель
e0e2492cd3
Коммит
7282f3113d
|
@ -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
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче