ruby-changes:67193
From: Kazuki <ko1@a...>
Date: Thu, 19 Aug 2021 17:31:41 +0900 (JST)
Subject: [ruby-changes:67193] f96c199449 (master): Fix test failure on spec/ruby/language/pattern_matching_spec.rb
https://git.ruby-lang.org/ruby.git/commit/?id=f96c199449 From f96c1994498ea0debabb3e9ab60738b79fc6c6ba Mon Sep 17 00:00:00 2001 From: Kazuki Tsujimoto <kazuki@c...> Date: Thu, 19 Aug 2021 17:28:30 +0900 Subject: Fix test failure on spec/ruby/language/pattern_matching_spec.rb https://github.com/ruby/ruby/runs/3369486308 --- spec/ruby/language/pattern_matching_spec.rb | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/spec/ruby/language/pattern_matching_spec.rb b/spec/ruby/language/pattern_matching_spec.rb index e9fc4f5..c6a3008 100644 --- a/spec/ruby/language/pattern_matching_spec.rb +++ b/spec/ruby/language/pattern_matching_spec.rb @@ -1138,12 +1138,15 @@ ruby_version_is "2.7" do https://github.com/ruby/ruby/blob/trunk/spec/ruby/language/pattern_matching_spec.rb#L1138 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 -- cgit v1.1 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/