diff options
Diffstat (limited to 'test/win32ole')
-rw-r--r-- | test/win32ole/test_nil2vtempty.rb | 4 | ||||
-rw-r--r-- | test/win32ole/test_win32ole_variant.rb | 13 |
2 files changed, 17 insertions, 0 deletions
diff --git a/test/win32ole/test_nil2vtempty.rb b/test/win32ole/test_nil2vtempty.rb index 6eb9333f01..4be3902b6d 100644 --- a/test/win32ole/test_nil2vtempty.rb +++ b/test/win32ole/test_nil2vtempty.rb @@ -26,6 +26,10 @@ if defined?(WIN32OLE) rs = con.openSchema(4, [nil,nil,"DUMMY", "TABLE"]) assert(rs) assert_equal("_Recordset", rs.ole_type.name) + + rs = con.openSchema(4, [WIN32OLE_VARIANT::Empty, WIN32OLE_VARIANT::Empty, "DUMMY", "TABLE"]) + assert(rs) + assert_equal("_Recordset", rs.ole_type.name) end end end diff --git a/test/win32ole/test_win32ole_variant.rb b/test/win32ole/test_win32ole_variant.rb index 22a2cd8f7b..6d20684b88 100644 --- a/test/win32ole/test_win32ole_variant.rb +++ b/test/win32ole/test_win32ole_variant.rb @@ -110,5 +110,18 @@ if defined?(WIN32OLE_VARIANT) assert_nil(var.value) end + def test_c_nothing + assert_nil(WIN32OLE_VARIANT::Nothing.value) + end + + def test_c_empty + assert_nil(WIN32OLE_VARIANT::Empty.value) + end + + def test_c_null + assert_nil(WIN32OLE_VARIANT::Null.value) + end + + end end |