mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* test/win32ole/test_win32ole.rb(test_s_locale_change) :add assertion which
should raise WIN32OLERuntimeError. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14894 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
76c2550b5b
commit
0d31533704
1 changed files with 3 additions and 0 deletions
|
@ -342,6 +342,9 @@ if defined?(WIN32OLE)
|
|||
WIN32OLE.locale = 0x0411
|
||||
obj = WIN32OLE_VARIANT.new("\\100,000", WIN32OLE::VARIANT::VT_CY)
|
||||
assert_equal("100000", obj.value)
|
||||
assert_raise(WIN32OLERuntimeError) {
|
||||
obj = WIN32OLE_VARIANT.new("$100.000", WIN32OLE::VARIANT::VT_CY)
|
||||
}
|
||||
|
||||
WIN32OLE.locale = 1033
|
||||
obj = WIN32OLE_VARIANT.new("$100,000", WIN32OLE::VARIANT::VT_CY)
|
||||
|
|
Loading…
Add table
Reference in a new issue