From 0d315337046760c7e1d4c3f6cac130a02e4a6f19 Mon Sep 17 00:00:00 2001 From: suke Date: Sat, 5 Jan 2008 10:42:36 +0000 Subject: [PATCH] * 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 --- test/win32ole/test_win32ole.rb | 3 +++ 1 file changed, 3 insertions(+) diff --git a/test/win32ole/test_win32ole.rb b/test/win32ole/test_win32ole.rb index 06d4713375..ea3484a354 100644 --- a/test/win32ole/test_win32ole.rb +++ b/test/win32ole/test_win32ole.rb @@ -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)