diff options
| author | Aaron Patterson <tenderlove@ruby-lang.org> | 2024-05-24 14:57:22 -0700 |
|---|---|---|
| committer | Aaron Patterson <aaron.patterson@gmail.com> | 2024-06-18 09:28:25 -0700 |
| commit | cfc5646cdc2b693aff1f8b74f30093765df16957 (patch) | |
| tree | e26acc8b88323ee26edc85e2dd1be3877132b354 /test | |
| parent | bd7a87e5bbe8dca6414d1bb719e945dec80dd311 (diff) | |
fix allocation assertions
Diffstat (limited to 'test')
| -rw-r--r-- | test/ruby/test_allocation.rb | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/test/ruby/test_allocation.rb b/test/ruby/test_allocation.rb index 65302e275d..ee489d94a7 100644 --- a/test/ruby/test_allocation.rb +++ b/test/ruby/test_allocation.rb @@ -665,10 +665,10 @@ class TestAllocation < Test::Unit::TestCase check_allocations(1, 1, "argument_forwarding(*array1, **hash1, **empty_hash#{block})") check_allocations(1, 0, "argument_forwarding(*array1, **nil#{block})") - check_allocations(1, 1, "argument_forwarding(*r2k_empty_array#{block})") - check_allocations(1, 1, "argument_forwarding(*r2k_array#{block})") - check_allocations(1, 1, "argument_forwarding(*r2k_empty_array1#{block})") - check_allocations(1, 1, "argument_forwarding(*r2k_array1#{block})") + check_allocations(0, 0, "argument_forwarding(*r2k_empty_array#{block})") + check_allocations(0, 0, "argument_forwarding(*r2k_array#{block})") + check_allocations(0, 0, "argument_forwarding(*r2k_empty_array1#{block})") + check_allocations(0, 0, "argument_forwarding(*r2k_array1#{block})") RUBY end @@ -711,10 +711,10 @@ class TestAllocation < Test::Unit::TestCase check_allocations(1, 1, "argument_forwarding(*array1, **hash1, **empty_hash#{block})") check_allocations(1, 0, "argument_forwarding(*array1, **nil#{block})") - check_allocations(1, 1, "argument_forwarding(*r2k_empty_array#{block})") - check_allocations(1, 1, "argument_forwarding(*r2k_array#{block})") - check_allocations(1, 1, "argument_forwarding(*r2k_empty_array1#{block})") - check_allocations(1, 1, "argument_forwarding(*r2k_array1#{block})") + check_allocations(0, 0, "argument_forwarding(*r2k_empty_array#{block})") + check_allocations(0, 0, "argument_forwarding(*r2k_array#{block})") + check_allocations(0, 0, "argument_forwarding(*r2k_empty_array1#{block})") + check_allocations(0, 0, "argument_forwarding(*r2k_array1#{block})") RUBY end |
