diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-12-18 04:49:10 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-12-18 04:49:10 +0000 |
commit | 4ef3a2345e2e81d9ab84ce812d5dc130688ce5cb (patch) | |
tree | 52555b1432ccb5714cfbf1069dfabf62d2a750fd /test/ruby/test_gc.rb | |
parent | 4d5e15acc610d1e66f07eecd8c48498c02f7c06e (diff) | |
download | ruby-4ef3a2345e2e81d9ab84ce812d5dc130688ce5cb.tar.gz |
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
Diffstat (limited to 'test/ruby/test_gc.rb')
-rw-r--r-- | test/ruby/test_gc.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/ruby/test_gc.rb b/test/ruby/test_gc.rb index 28d2dc9be1..7c13978dc1 100644 --- a/test/ruby/test_gc.rb +++ b/test/ruby/test_gc.rb @@ -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 } |