mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
test_gc.rb: fix syntax error
* test/ruby/test_gc.rb (TestGc#test_expand_heap): fix syntax error by mismatched paren. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@44274 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
4d5e15acc6
commit
4ef3a2345e
1 changed files with 2 additions and 2 deletions
|
@ -251,8 +251,8 @@ class TestGc < Test::Unit::TestCase
|
|||
base_length = GC.stat[:heap_eden_page_length]
|
||||
(base_length * 500).times{ 'a' }
|
||||
GC.start
|
||||
assert_in_delta base_length, GC.stat[:heap_eden_page_length], 1,
|
||||
"invalid heap expanding (base_length: #{base_length}, GC.stat[:heap_eden_page_length]: #{v})")
|
||||
assert_in_delta base_length, (v = GC.stat[:heap_eden_page_length]), 1,
|
||||
"invalid heap expanding (base_length: #{base_length}, GC.stat[:heap_eden_page_length]: #{v})"
|
||||
|
||||
a = []
|
||||
(base_length * 500).times{ a << 'a'; nil }
|
||||
|
|
Loading…
Add table
Reference in a new issue