test/win32ole/test_win32ole_variant.rb: use other than Integer
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@55046 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
6a69ab937c
commit
2bedfc6627
@ -523,9 +523,9 @@ if defined?(WIN32OLE_VARIANT)
|
|||||||
|
|
||||||
def test_create_vt_array_exc
|
def test_create_vt_array_exc
|
||||||
exc = assert_raise(TypeError) {
|
exc = assert_raise(TypeError) {
|
||||||
WIN32OLE_VARIANT.new(1, WIN32OLE::VARIANT::VT_ARRAY);
|
WIN32OLE_VARIANT.new("", WIN32OLE::VARIANT::VT_ARRAY)
|
||||||
}
|
}
|
||||||
assert_match(/wrong argument type Fixnum \(expected Array\)/, exc.message)
|
assert_match(/wrong argument type String \(expected Array\)/, exc.message)
|
||||||
end
|
end
|
||||||
|
|
||||||
def test_create_vt_array_str2ui1array
|
def test_create_vt_array_str2ui1array
|
||||||
|
Loading…
x
Reference in New Issue
Block a user