1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* test/fiddle/test_closure.rb (test_memsize): test for r29635.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29636 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2010-10-30 00:09:42 +00:00
parent 6b48289bb7
commit 6c416e96f0

View file

@ -45,5 +45,12 @@ module Fiddle
func = Function.new(cb, [TYPE_INT], TYPE_INT)
assert_equal 11, func.call(11)
end
def test_memsize
require 'objspace'
bug = '[ruby-dev:42480]'
n = 10000
assert_equal(n, n.times {ObjectSpace.memsize_of(Closure.allocate)}, bug)
end
end
end