DEFINITIONS
This source file includes following functions.
1 # You need RubyUnit and MS Excel and MSI to run this test script
2
3 require 'rubyunit'
4
5 require 'win32ole'
6
7 class TestWin32OLE_VARIANT < RUNIT::TestCase
8 include WIN32OLE::VARIANT
9 def test_variant
10 assert_equal(2, VT_I2)
11 assert_equal(3, VT_I4)
12 assert_equal(4, VT_R4)
13 assert_equal(5, VT_R8)
14 assert_equal(6, VT_CY)
15 assert_equal(7, VT_DATE)
16 assert_equal(8, VT_BSTR)
17 assert_equal(9, VT_DISPATCH)
18 assert_equal(10, VT_ERROR)
19 assert_equal(11, VT_BOOL)
20 assert_equal(12, VT_VARIANT)
21 assert_equal(13, VT_UNKNOWN)
22 assert_equal(16, VT_I1)
23 assert_equal(17, VT_UI1)
24 assert_equal(18, VT_UI2)
25 assert_equal(19, VT_UI4)
26 assert_equal(22, VT_INT)
27 assert_equal(23, VT_UINT)
28 assert_equal(0x2000, VT_ARRAY)
29 assert_equal(0x4000, VT_BYREF)
30 end
31 end
32