Lei Zhang : oleaut32/tests: Add a VarFormat test for date and time.

Alexandre Julliard julliard at winehq.org
Mon Feb 2 09:01:11 CST 2009


Module: wine
Branch: master
Commit: ae28430ff80b547c9a34edee2b99dda96b4ba098
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=ae28430ff80b547c9a34edee2b99dda96b4ba098

Author: Lei Zhang <thestig at google.com>
Date:   Fri Jan 30 20:05:15 2009 -0800

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");
 




More information about the wine-cvs mailing list