Nikolay Sivov : oleaut32/tests: Some VarDateFromStr() tests.
Alexandre Julliard
julliard at winehq.org
Mon Nov 29 13:38:34 CST 2010
Module: wine
Branch: master
Commit: cb0d7276c1fcb0729153df03f60e72cb0234b0b5
URL: http://source.winehq.org/git/wine.git/?a=commit;h=cb0d7276c1fcb0729153df03f60e72cb0234b0b5
Author: Nikolay Sivov <nsivov at codeweavers.com>
Date: Sun Nov 28 20:52:35 2010 +0300
oleaut32/tests: Some VarDateFromStr() tests.
---
dlls/oleaut32/tests/vartype.c | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/dlls/oleaut32/tests/vartype.c b/dlls/oleaut32/tests/vartype.c
index 279fd7b..e067352 100644
--- a/dlls/oleaut32/tests/vartype.c
+++ b/dlls/oleaut32/tests/vartype.c
@@ -3436,6 +3436,8 @@ static void test_VarDateFromStr(void)
DFS("1 2 1970"); EXPECT_DBL(25570.0);
DFS("1/2/1970"); EXPECT_DBL(25570.0);
DFS("1-2-1970"); EXPECT_DBL(25570.0);
+ DFS("13-1-1970"); EXPECT_DBL(25581.0);
+ DFS("1970-1-13"); EXPECT_DBL(25581.0);
/* Native fails "1999 January 3, 9AM". I consider that a bug in native */
/* test a non-english data string */
@@ -3443,6 +3445,8 @@ static void test_VarDateFromStr(void)
DFS("02.01.1970 00:00:00"); EXPECT_MISMATCH;
lcid = MAKELCID(MAKELANGID(LANG_GERMAN,SUBLANG_GERMAN),SORT_DEFAULT);
DFS("02.01.1970"); EXPECT_DBL(25570.0);
+ DFS("02.13.1970"); EXPECT_DBL(25612.0);
+ DFS("02-13-1970"); EXPECT_DBL(25612.0);
DFS("02.01.1970 00:00:00"); EXPECT_DBL(25570.0);
lcid = MAKELCID(MAKELANGID(LANG_SPANISH,SUBLANG_SPANISH),SORT_DEFAULT);
DFS("02.01.1970"); EXPECT_MISMATCH;
More information about the wine-cvs
mailing list