diff options
author | tenderlove <tenderlove@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-11-06 22:50:40 +0000 |
---|---|---|
committer | tenderlove <tenderlove@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-11-06 22:50:40 +0000 |
commit | 35da6fdcf1103df9f0dcdd57cb2f913f4c593740 (patch) | |
tree | ae27b67dc80039ad1658b5765e71d2d821fbabdf /test | |
parent | bc52ea0fde16d2a5c209fb09a8e341d2905d2705 (diff) | |
download | ruby-35da6fdcf1103df9f0dcdd57cb2f913f4c593740.tar.gz |
* ext/dl/cfunc.c (rb_dlcfunc_initialize): cleaning up C macros
* ext/dl/cfunc.c (**): adding documentation
* test/dl/test_cfunc.rb (test_set_calltype) testing calltype
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25679 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test')
-rw-r--r-- | test/dl/test_cfunc.rb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/test/dl/test_cfunc.rb b/test/dl/test_cfunc.rb index 3e928257bd..bd6653ff5d 100644 --- a/test/dl/test_cfunc.rb +++ b/test/dl/test_cfunc.rb @@ -9,6 +9,11 @@ module DL @cf = CFunc.new(@libc[@name], TYPE_VOIDP, @name) end + def test_set_calltype + @cf.calltype = :foo + assert_equal :foo, @cf.calltype + end + def test_new_ptr_type_name assert_equal @name, @cf.name assert @cf.name.tainted?, 'name should be tainted' @@ -47,6 +52,7 @@ module DL def test_to_i assert_equal @cf.to_i, @cf.ptr + assert_equal @libc[@name], @cf.to_i end def test_last_error |