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

* test/dl/test_cfunc.rb: test for r28156

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28157 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
tenderlove 2010-06-04 02:24:32 +00:00
parent da0ac85107
commit c052958912

View file

@ -59,6 +59,10 @@ module DL
assert_equal @cf.inspect, @cf.to_s
end
def test_inspect_is_tainted
assert @cf.inspect.tainted?, 'inspect is tainted'
end
def test_to_i
assert_equal @cf.to_i, @cf.ptr
assert_equal @libc[@name], @cf.to_i