summaryrefslogtreecommitdiff
path: root/test/ruby
diff options
context:
space:
mode:
Diffstat (limited to 'test/ruby')
-rw-r--r--test/ruby/test_allocation.rb6
1 files changed, 2 insertions, 4 deletions
diff --git a/test/ruby/test_allocation.rb b/test/ruby/test_allocation.rb
index 42a3cdeead..3f83b98470 100644
--- a/test/ruby/test_allocation.rb
+++ b/test/ruby/test_allocation.rb
@@ -123,8 +123,7 @@ class TestAllocation < Test::Unit::TestCase
check_allocations(0, 0, "required(*r2k_empty_array1#{block})")
check_allocations(0, 1, "required(*r2k_array#{block})")
- # Currently allocates 1 array unnecessarily
- check_allocations(1, 1, "required(*empty_array, **hash1, **empty_hash#{block})")
+ check_allocations(0, 1, "required(*empty_array, **hash1, **empty_hash#{block})")
RUBY
end
@@ -148,8 +147,7 @@ class TestAllocation < Test::Unit::TestCase
check_allocations(0, 0, "optional(*r2k_empty_array1#{block})")
check_allocations(0, 1, "optional(*r2k_array#{block})")
- # Currently allocates 1 array unnecessarily
- check_allocations(1, 1, "optional(*empty_array, **hash1, **empty_hash#{block})")
+ check_allocations(0, 1, "optional(*empty_array, **hash1, **empty_hash#{block})")
RUBY
end