Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-cw
Commits
bb0d6b72
Commit
bb0d6b72
authored
Jan 02, 2004
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Commented out tests that assume that the current year is 2003.
parent
4e2c0364
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
4 deletions
+5
-4
vartest.c
dlls/oleaut32/tests/vartest.c
+1
-0
vartype.c
dlls/oleaut32/tests/vartype.c
+4
-4
No files found.
dlls/oleaut32/tests/vartest.c
View file @
bb0d6b72
...
...
@@ -2282,6 +2282,7 @@ static void test_variant(void)
for
(
i
=
0
;
i
<
NB_OLE_STRINGS
;
i
++
)
{
*
pDouble
=
42
.
0
;
if
(
i
==
34
)
continue
;
/* result for this one depends on the current year */
rc
=
VarDateFromStr
(
pOleChar
[
i
],
lcid
,
LOCALE_NOUSEROVERRIDE
,
pDouble
);
ok
(
i
==
94
/* FIXME: Bug in native */
||
rc
==
strrets_DATE
[
i
].
error
,
"VarDateFromStr([%d]=
\"
%s
\"
) rc= %lx instead of %lx"
,
...
...
dlls/oleaut32/tests/vartype.c
View file @
bb0d6b72
...
...
@@ -3269,16 +3269,16 @@ static void test_VarDateFromStr(void)
/* After 30, two digit dates are expected to be in the 1900's */
DFS
(
"1 2 30"
);
EXPECT_DBL
(
10960
.
0
);
DFS
(
"1 2 31"
);
EXPECT_DBL
(
11325
.
0
);
DFS
(
"3 am 1 2"
);
EXPECT_DBL
(
37623
.
125
);
DFS
(
"1 2 3 am"
);
EXPECT_DBL
(
37623
.
125
);
/* DFS("3 am 1 2"); EXPECT_DBL(37623.125); FIXME: assumes year is 2003 */
/* DFS("1 2 3 am"); EXPECT_DBL(37623.125); FIXME: assumes year is 2003 */
/* 4 elements -interpreted as 2 digit date & time */
DFS
(
"1.2 3 4"
);
MKRELDATE
(
4
,
3
);
relative
+=
0
.
04305555556
;
EXPECT_DBL
(
relative
);
DFS
(
"3 4 1.2"
);
EXPECT_DBL
(
relative
);
/* 5 elements - interpreted as 2 & 3 digit date/times */
DFS
(
"1.2.3 4 5"
);
EXPECT_DBL
(
37716
.
0430
9027778
);
/* DFS("1.2.3 4 5"); EXPECT_DBL(37716.04309027778); FIXME: assumes year is 2003 */
DFS
(
"1.2 3 4 5"
);
EXPECT_DBL
(
38415
.
04305555556
);
DFS
(
"1 2 3.4.5"
);
EXPECT_DBL
(
37623
.
12783564815
);
/* DFS("1 2 3.4.5"); EXPECT_DBL(37623.12783564815); FIXME: assumes year is 2003 */
DFS
(
"1 2 3 4.5"
);
EXPECT_DBL
(
37623
.
17013888889
);
/* 6 elements - interpreted as 3 digit date/times */
DFS
(
"1.2.3 4 5 6"
);
EXPECT_DBL
(
38812
.
0430
9027778
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment