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.
This commit is contained in:
Andrew Konchin 2024-05-10 12:28:59 +03:00 committed by Kazuki Tsujimoto
parent 9d01f657b3
commit b60f09442a

View File

@ -1331,7 +1331,7 @@ END
end
assert_block do
case {}
case C.new({})
in {}
C.keys == nil
end