Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
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-winehq
Commits
56d8f516
Commit
56d8f516
authored
Dec 17, 2007
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
oleaut32/tests: Avoid relying on system-dependent rounding.
parent
61bace5b
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
vartest.c
dlls/oleaut32/tests/vartest.c
+4
-4
No files found.
dlls/oleaut32/tests/vartest.c
View file @
56d8f516
...
...
@@ -3104,8 +3104,8 @@ static void test_Round( int line, VARIANT *arg, int deci, VARIANT *expected )
static
void
test_VarRound
(
void
)
{
static
WCHAR
szNumMin
[]
=
{
'-'
,
'1'
,
'.'
,
'4'
,
'
5
'
,
'\0'
};
static
WCHAR
szNum
[]
=
{
'1'
,
'.'
,
'4'
,
'5'
,
'\0'
};
static
WCHAR
szNumMin
[]
=
{
'-'
,
'1'
,
'.'
,
'4'
,
'
4'
,
'9
'
,
'\0'
};
static
WCHAR
szNum
[]
=
{
'1'
,
'.'
,
'4'
,
'5'
,
'
1'
,
'
\0'
};
HRESULT
hres
;
VARIANT
v
,
exp
,
vDst
;
CY
*
pcy
=
&
V_CY
(
&
v
);
...
...
@@ -3140,7 +3140,7 @@ static void test_VarRound(void)
/* floating point numbers aren't exactly equal and we can't just
* compare the first few digits. */
VARROUND
(
DATE
,
1
.
451
,
1
,
DATE
,
1
.
5
);
VARROUND
(
DATE
,
-
1
.
4
5
,
1
,
DATE
,
-
1
.
4
);
VARROUND
(
DATE
,
-
1
.
4
49
,
1
,
DATE
,
-
1
.
4
);
/* replace the decimal separator */
GetLocaleInfoA
(
LOCALE_USER_DEFAULT
,
LOCALE_SDECIMAL
,
buff
,
sizeof
(
buff
)
/
sizeof
(
char
));
...
...
@@ -3148,7 +3148,7 @@ static void test_VarRound(void)
szNumMin
[
2
]
=
buff
[
0
];
szNum
[
1
]
=
buff
[
0
];
VARROUND
(
BSTR
,(
BSTR
)
szNumMin
,
1
,
R8
,
-
1
.
40
);
if
(
0
)
{
VARROUND
(
BSTR
,(
BSTR
)
szNum
,
1
,
R8
,
1
.
50
);
}
VARROUND
(
BSTR
,(
BSTR
)
szNum
,
1
,
R8
,
1
.
50
);
}
else
{
skip
(
"Skipping VarRound(BSTR) as decimal separator is '%s'
\n
"
,
buff
);
}
...
...
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