1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

Fix test failure on spec/ruby/language/pattern_matching_spec.rb

https://github.com/ruby/ruby/runs/3369486308
This commit is contained in:
Kazuki Tsujimoto 2021-08-19 17:28:30 +09:00
parent ecb6d6a4ef
commit f96c199449
No known key found for this signature in database
GPG key ID: BCEA306C49B81CD7

View file

@ -1138,12 +1138,15 @@ ruby_version_is "2.7" do
ruby_version_is "3.1" do
it "can omit parentheses in one line pattern matching" do
[1, 2] => a, b
a.should == 1
b.should == 2
eval(<<~RUBY).should == [1, 2]
[1, 2] => a, b
[a, b]
RUBY
{a: 1} => a:
a.should == 1
eval(<<~RUBY).should == 1
{a: 1} => a:
a
RUBY
end
end
end