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
6e8586ca
Commit
6e8586ca
authored
Jul 26, 2021
by
Francois Gouget
Committed by
Alexandre Julliard
Jul 26, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
oleaut32/tests: Use NUMPRS_HEX_OCT instead of hardcoding its value.
Signed-off-by:
Francois Gouget
<
fgouget@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
2197bc9a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
vartest.c
dlls/oleaut32/tests/vartest.c
+5
-5
No files found.
dlls/oleaut32/tests/vartest.c
View file @
6e8586ca
...
...
@@ -1505,7 +1505,7 @@ static void test_VarParseNumFromStrEn(void)
/* VB hex */
CONVERT
(
"&HF800"
,
NUMPRS_HEX_OCT
);
EXPECT
(
4
,
NUMPRS_HEX_OCT
,
0x40
,
6
,
4
,
0
);
EXPECT
(
4
,
NUMPRS_HEX_OCT
,
NUMPRS_HEX_OCT
,
6
,
4
,
0
);
EXPECTRGB
(
0
,
15
);
EXPECTRGB
(
1
,
8
);
EXPECTRGB
(
2
,
0
);
...
...
@@ -1514,7 +1514,7 @@ static void test_VarParseNumFromStrEn(void)
/* VB hex lower case and leading zero */
CONVERT
(
"&h0abcdef"
,
NUMPRS_HEX_OCT
);
EXPECT
(
6
,
NUMPRS_HEX_OCT
,
0x40
,
9
,
4
,
0
);
EXPECT
(
6
,
NUMPRS_HEX_OCT
,
NUMPRS_HEX_OCT
,
9
,
4
,
0
);
EXPECTRGB
(
0
,
10
);
EXPECTRGB
(
1
,
11
);
EXPECTRGB
(
2
,
12
);
...
...
@@ -1525,7 +1525,7 @@ static void test_VarParseNumFromStrEn(void)
/* VB oct */
CONVERT
(
"&O300"
,
NUMPRS_HEX_OCT
);
EXPECT
(
3
,
NUMPRS_HEX_OCT
,
0x40
,
5
,
3
,
0
);
EXPECT
(
3
,
NUMPRS_HEX_OCT
,
NUMPRS_HEX_OCT
,
5
,
3
,
0
);
EXPECTRGB
(
0
,
3
);
EXPECTRGB
(
1
,
0
);
EXPECTRGB
(
2
,
0
);
...
...
@@ -1533,7 +1533,7 @@ static void test_VarParseNumFromStrEn(void)
/* VB oct lower case and leading zero */
CONVERT
(
"&o0777"
,
NUMPRS_HEX_OCT
);
EXPECT
(
3
,
NUMPRS_HEX_OCT
,
0x40
,
6
,
3
,
0
);
EXPECT
(
3
,
NUMPRS_HEX_OCT
,
NUMPRS_HEX_OCT
,
6
,
3
,
0
);
EXPECTRGB
(
0
,
7
);
EXPECTRGB
(
1
,
7
);
EXPECTRGB
(
2
,
7
);
...
...
@@ -1541,7 +1541,7 @@ static void test_VarParseNumFromStrEn(void)
/* VB oct char bigger than 7 */
CONVERT
(
"&o128"
,
NUMPRS_HEX_OCT
);
EXPECT
(
2
,
NUMPRS_HEX_OCT
,
0x40
,
4
,
3
,
0
);
EXPECT
(
2
,
NUMPRS_HEX_OCT
,
NUMPRS_HEX_OCT
,
4
,
3
,
0
);
EXPECTRGB
(
0
,
1
);
EXPECTRGB
(
1
,
2
);
EXPECTRGB
(
3
,
FAILDIG
);
...
...
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