Skip to content

Commit

Permalink
Fix TestPatternMatching#test_deconstruct_keys test
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
andrykonchin authored and k-tsj committed May 14, 2024
1 parent 9d01f65 commit b60f094
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/ruby/test_pattern_matching.rb
Original file line number Diff line number Diff line change
Expand Up @@ -1331,7 +1331,7 @@ def test_deconstruct_keys
end

assert_block do
case {}
case C.new({})
in {}
C.keys == nil
end
Expand Down

0 comments on commit b60f094

Please sign in to comment.