diff options
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) |