summaryrefslogtreecommitdiff
path: root/test/ruby/test_pattern_matching.rb
diff options
context:
space:
mode:
authorAndrew Konchin <[email protected]>2024-05-10 12:28:59 +0300
committerKazuki Tsujimoto <[email protected]>2024-05-14 15:43:28 +0900
commitb60f09442a0220e2fc053de020fdc58b642f851e (patch)
tree2196c60270e97c3776228daef3f72ee85e44b25d /test/ruby/test_pattern_matching.rb
parent9d01f657b30f51f60ac6dec7fb47d13549d26bcd (diff)
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.
Diffstat (limited to 'test/ruby/test_pattern_matching.rb')
-rw-r--r--test/ruby/test_pattern_matching.rb2
1 files changed, 1 insertions, 1 deletions
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