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:
parent
da0ac85107
commit
c052958912
1 changed files with 4 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue