From b60f09442a0220e2fc053de020fdc58b642f851e Mon Sep 17 00:00:00 2001 From: Andrew Konchin Date: Fri, 10 May 2024 12:28:59 +0300 Subject: [PATCH] Fix TestPatternMatching#test_deconstruct_keys test Before the change `C.keys` returned keys captured in some previous test case that by chance captured `nil` value what made this test passed successfully. Now it returns keys captured in this test case. --- test/ruby/test_pattern_matching.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/ruby/test_pattern_matching.rb b/test/ruby/test_pattern_matching.rb index db6ad06b82..cfe3bd1e19 100644 --- a/test/ruby/test_pattern_matching.rb +++ b/test/ruby/test_pattern_matching.rb @@ -1331,7 +1331,7 @@ END end assert_block do - case {} + case C.new({}) in {} C.keys == nil end