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
b3f7de8f
Commit
b3f7de8f
authored
Jun 09, 2013
by
André Hentschel
Committed by
Alexandre Julliard
Jun 11, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
oleaut32/tests: Add tests for VarDecCmpR8 (gcov).
parent
21f2c0e6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
34 additions
and
0 deletions
+34
-0
vartype.c
dlls/oleaut32/tests/vartype.c
+34
-0
No files found.
dlls/oleaut32/tests/vartype.c
View file @
b3f7de8f
...
...
@@ -482,6 +482,7 @@ static HRESULT (WINAPI *pVarDecSub)(const DECIMAL*,const DECIMAL*,DECIMAL*);
static
HRESULT
(
WINAPI
*
pVarDecMul
)(
const
DECIMAL
*
,
const
DECIMAL
*
,
DECIMAL
*
);
static
HRESULT
(
WINAPI
*
pVarDecDiv
)(
const
DECIMAL
*
,
const
DECIMAL
*
,
DECIMAL
*
);
static
HRESULT
(
WINAPI
*
pVarDecCmp
)(
const
DECIMAL
*
,
const
DECIMAL
*
);
static
HRESULT
(
WINAPI
*
pVarDecCmpR8
)(
const
DECIMAL
*
,
double
);
static
HRESULT
(
WINAPI
*
pVarDecNeg
)(
const
DECIMAL
*
,
DECIMAL
*
);
static
HRESULT
(
WINAPI
*
pVarBoolFromUI1
)(
BYTE
,
VARIANT_BOOL
*
);
...
...
@@ -4258,6 +4259,8 @@ static void test_VarDecFromCy(void)
#define MATH1(func) hres = p##func(&l, &out)
#undef MATH2
#define MATH2(func) hres = p##func(&l, &r, &out)
#undef MATH3
#define MATH3(func) hres = p##func(&l, r)
static
void
test_VarDecAbs
(
void
)
{
...
...
@@ -4554,6 +4557,36 @@ static void test_VarDecCmp(void)
}
static
void
test_VarDecCmpR8
(
void
)
{
HRESULT
hres
;
DECIMAL
l
;
double
r
;
CHECKPTR
(
VarDecCmpR8
);
SETDEC
(
l
,
0
,
0
,
0
,
1
);
r
=
0
.
0
;
MATH3
(
VarDecCmpR8
);
EXPECT_GT
;
SETDEC
(
l
,
0
,
0
,
0
,
1
);
r
=
0
.
1
;
MATH3
(
VarDecCmpR8
);
EXPECT_GT
;
SETDEC
(
l
,
0
,
0
,
0
,
1
);
r
=
-
0
.
1
;
MATH3
(
VarDecCmpR8
);
EXPECT_GT
;
SETDEC
(
l
,
0
,
DECIMAL_NEG
,
0
,
1
);
r
=
0
.
0
;
MATH3
(
VarDecCmpR8
);
EXPECT_LT
;
SETDEC
(
l
,
0
,
DECIMAL_NEG
,
0
,
1
);
r
=
0
.
1
;
MATH3
(
VarDecCmpR8
);
EXPECT_LT
;
SETDEC
(
l
,
0
,
DECIMAL_NEG
,
0
,
1
);
r
=
-
0
.
1
;
MATH3
(
VarDecCmpR8
);
EXPECT_LT
;
SETDEC
(
l
,
0
,
0
,
0
,
0
);
r
=
0
.
0
;
MATH3
(
VarDecCmpR8
);
EXPECT_EQ
;
SETDEC
(
l
,
0
,
0
,
0
,
0
);
r
=
0
.
1
;
MATH3
(
VarDecCmpR8
);
EXPECT_LT
;
SETDEC
(
l
,
0
,
0
,
0
,
0
);
r
=
-
0
.
1
;
MATH3
(
VarDecCmpR8
);
EXPECT_GT
;
SETDEC
(
l
,
0
,
DECIMAL_NEG
,
0
,
0
);
r
=
0
.
0
;
MATH3
(
VarDecCmpR8
);
EXPECT_EQ
;
SETDEC
(
l
,
0
,
DECIMAL_NEG
,
0
,
0
);
r
=
0
.
1
;
MATH3
(
VarDecCmpR8
);
EXPECT_LT
;
SETDEC
(
l
,
0
,
DECIMAL_NEG
,
0
,
0
);
r
=
-
0
.
1
;
MATH3
(
VarDecCmpR8
);
EXPECT_GT
;
SETDEC
(
l
,
0
,
0
,
0
,
1
);
r
=
DECIMAL_NEG
;
MATH3
(
VarDecCmpR8
);
EXPECT_LT
;
SETDEC
(
l
,
0
,
DECIMAL_NEG
,
0
,
0
);
r
=
DECIMAL_NEG
;
MATH3
(
VarDecCmpR8
);
EXPECT_LT
;
SETDEC
(
l
,
0
,
0
,
-
1
,
-
1
);
r
=
DECIMAL_NEG
;
MATH3
(
VarDecCmpR8
);
EXPECT_GT
;
SETDEC
(
l
,
0
,
DECIMAL_NEG
,
-
1
,
-
1
);
r
=
DECIMAL_NEG
;
MATH3
(
VarDecCmpR8
);
EXPECT_LT
;
}
/*
* VT_BOOL
*/
...
...
@@ -6358,6 +6391,7 @@ START_TEST(vartype)
test_VarDecAdd
();
test_VarDecSub
();
test_VarDecCmp
();
test_VarDecCmpR8
();
test_VarDecMul
();
test_VarDecDiv
();
...
...
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