[PATCH] oleaut32/tests: Add a VarFormat test for date and time.

Lei Zhang thestig at google.com
Fri Jan 30 22:08:14 CST 2009


Hi,

This adds a test for the formatting problem in bug 13778.
-------------- next part --------------
From 5df77ad984d611f650db7b879a79cb97e21f0295 Mon Sep 17 00:00:00 2001
From: Lei Zhang <thestig at google.com>
Date: Fri, 30 Jan 2009 20:05:15 -0800
Subject: [PATCH] oleaut32/tests: Add a VarFormat test for date and time.

---
 dlls/oleaut32/tests/varformat.c |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/dlls/oleaut32/tests/varformat.c b/dlls/oleaut32/tests/varformat.c
index b8de8e2..738c306 100644
--- a/dlls/oleaut32/tests/varformat.c
+++ b/dlls/oleaut32/tests/varformat.c
@@ -230,6 +230,7 @@ static const FMTDATERES VarFormat_date_results[] =
 static void test_VarFormat(void)
 {
   static const WCHAR szTesting[] = { 't','e','s','t','i','n','g','\0' };
+  static const WCHAR szNum[] = { '3','9','6','9','7','.','1','1','\0' };
   size_t i;
   WCHAR buffW[256];
   char buff[256];
@@ -315,6 +316,10 @@ static void test_VarFormat(void)
   VARFMT(VT_BSTR,V_BSTR,bstrin,"<&&",S_OK,"testing");
   VARFMT(VT_BSTR,V_BSTR,bstrin,"<&>&",S_OK,"testing");
   SysFreeString(bstrin);
+  bstrin = SysAllocString(szNum);
+  todo_wine VARFMT(VT_BSTR,V_BSTR,bstrin,"hh:mm",S_OK,"02:38");
+  todo_wine VARFMT(VT_BSTR,V_BSTR,bstrin,"mm-dd-yy",S_OK,"09-06-08");
+  SysFreeString(bstrin);
   /* Numeric values are converted to strings then output */
   VARFMT(VT_I1,V_I1,1,"<&>&",S_OK,"1");
 
-- 
1.5.4.3


More information about the wine-patches mailing list