diff options
author | suke <suke@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2004-10-17 04:02:16 +0000 |
---|---|---|
committer | suke <suke@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2004-10-17 04:02:16 +0000 |
commit | 1f895ea893c5c4544cd70ec96f3af9003101b5cf (patch) | |
tree | 82ee80ed93b081ce652eeba7d613840d473d9bf7 /ext/win32ole/tests | |
parent | 77f8be61887dba02e48d7a8756298a6a83c6b511 (diff) |
* ext/win32ole/win32ole.c (fole_func_methods): correct argument mismatch.
* ext/win32ole/win32ole.c (fole_get_methods): ditto.
* ext/win32ole/win32ole.c (fole_put_methods): ditto.
* ext/win32ole/tests/testWIN32OLE.rb: add test for WIN32OLE#ole_func_methods
WIN32OLE#ole_get_methods, WIN32OLE#ole_put_methods
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@7051 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/win32ole/tests')
-rw-r--r-- | ext/win32ole/tests/testWIN32OLE.rb | 22 |
1 files changed, 18 insertions, 4 deletions
diff --git a/ext/win32ole/tests/testWIN32OLE.rb b/ext/win32ole/tests/testWIN32OLE.rb index 7907fe36a9..c8df97f6f7 100644 --- a/ext/win32ole/tests/testWIN32OLE.rb +++ b/ext/win32ole/tests/testWIN32OLE.rb @@ -189,6 +189,24 @@ class TestWin32OLE < RUNIT::TestCase method_names = methods.collect{|m| m.name} assert(method_names.include?("Quit")) end + def test_ole_func_methods + methods = @excel.ole_func_methods + assert(methods.size > 0) + method_names = methods.collect{|m| m.name} + assert(method_names.include?("Quit")) + end + def test_ole_put_methods + methods = @excel.ole_put_methods + assert(methods.size > 0) + method_names = methods.collect{|m| m.name} + assert(method_names.include?("Visible")) + end + def test_ole_get_methods + methods = @excel.ole_get_methods + assert(methods.size > 0) + method_names = methods.collect{|m| m.name} + assert(method_names.include?("Visible")) + end def test_ole_method_help quit_info = @excel.ole_method_help("Quit") assert_equal(0, quit_info.size_params) @@ -202,10 +220,6 @@ class TestWin32OLE < RUNIT::TestCase assert(add_info.params[0].optional?) assert_equal('VARIANT', add_info.params[0].ole_type) end -# def test_ole_put_methods -# methods_list = @excel.ole_put_methods -# puts methods_list -# end def teardown @excel.quit @excel = nil |