summaryrefslogtreecommitdiff
path: root/ext/win32ole/tests/testWIN32OLE.rb
diff options
context:
space:
mode:
Diffstat (limited to 'ext/win32ole/tests/testWIN32OLE.rb')
-rw-r--r--ext/win32ole/tests/testWIN32OLE.rb6
1 files changed, 6 insertions, 0 deletions
diff --git a/ext/win32ole/tests/testWIN32OLE.rb b/ext/win32ole/tests/testWIN32OLE.rb
index 185670c9fc..8c50c7666e 100644
--- a/ext/win32ole/tests/testWIN32OLE.rb
+++ b/ext/win32ole/tests/testWIN32OLE.rb
@@ -289,6 +289,12 @@ class TestWin32OLE < RUNIT::TestCase
assert_equal(tlib.name, MS_EXCEL_TYPELIB);
end
+ def test_s_create_guid
+ guid = WIN32OLE.create_guid
+ assert_match(/^\{[A-Z0-9]{8}\-[A-Z0-9]{4}\-[A-Z0-9]{4}\-[A-Z0-9]{4}\-[A-Z0-9]{12}/,
+ guid)
+ end
+
def teardown
@excel.quit
@excel = nil