diff options
author | suke <suke@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-07-10 12:22:16 +0000 |
---|---|---|
committer | suke <suke@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-07-10 12:22:16 +0000 |
commit | 4f1b06aabd54b86f08cac13498c73fcb0237fe05 (patch) | |
tree | c5ab00a9410bd3fa9e1df4780e4c8a7b97c8112d /test/win32ole/test_win32ole_typelib.rb | |
parent | 86714f5b160a5342f6ed9564fe9db30be120100c (diff) | |
download | ruby-4f1b06aabd54b86f08cac13498c73fcb0237fe05.tar.gz |
* test/win32ole/test_win32ole_typelib.rb: add some illegal argument test.
* test/win32ole/test_win32ole_type.rb: ditto.
* test/win32ole/test_win32ole_event.rb: ditto.
* test/win32ole/test_win32ole_param.rb: ditto.
* test/win32ole/test_win32ole_method.rb: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18011 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/win32ole/test_win32ole_typelib.rb')
-rw-r--r-- | test/win32ole/test_win32ole_typelib.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/test/win32ole/test_win32ole_typelib.rb b/test/win32ole/test_win32ole_typelib.rb index 16e6c1a663..a1c3891396 100644 --- a/test/win32ole/test_win32ole_typelib.rb +++ b/test/win32ole/test_win32ole_typelib.rb @@ -18,6 +18,11 @@ if defined?(WIN32OLE_TYPELIB) assert_raise(ArgumentError) { WIN32OLE_TYPELIB.new(1,2,3,4) } + + assert_raise(TypeError) { + WIN32OLE_TYPELIB.new(100) + } + tlib = WIN32OLE_TYPELIB.new("Microsoft Shell Controls And Automation") assert_instance_of(WIN32OLE_TYPELIB, tlib) |