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
f8c88bc3
Commit
f8c88bc3
authored
Jul 19, 2010
by
Andrew Nguyen
Committed by
Alexandre Julliard
Jul 20, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
shlwapi/tests: Rename a string variable for clarity.
parent
f2135efe
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
13 deletions
+13
-13
string.c
dlls/shlwapi/tests/string.c
+13
-13
No files found.
dlls/shlwapi/tests/string.c
View file @
f8c88bc3
...
@@ -964,7 +964,7 @@ if (0)
...
@@ -964,7 +964,7 @@ if (0)
static
void
test_StrStrA
(
void
)
static
void
test_StrStrA
(
void
)
{
{
static
const
char
*
deadbeef
=
"DeAdBeEf"
;
static
const
char
*
deadbeef
A
=
"DeAdBeEf"
;
const
struct
const
struct
{
{
...
@@ -973,11 +973,11 @@ static void test_StrStrA(void)
...
@@ -973,11 +973,11 @@ static void test_StrStrA(void)
}
StrStrA_cases
[]
=
}
StrStrA_cases
[]
=
{
{
{
""
,
NULL
},
{
""
,
NULL
},
{
"DeAd"
,
deadbeef
},
{
"DeAd"
,
deadbeef
A
},
{
"dead"
,
NULL
},
{
"dead"
,
NULL
},
{
"AdBe"
,
deadbeef
+
2
},
{
"AdBe"
,
deadbeef
A
+
2
},
{
"adbe"
,
NULL
},
{
"adbe"
,
NULL
},
{
"BeEf"
,
deadbeef
+
4
},
{
"BeEf"
,
deadbeef
A
+
4
},
{
"beef"
,
NULL
},
{
"beef"
,
NULL
},
};
};
...
@@ -1002,7 +1002,7 @@ static void test_StrStrA(void)
...
@@ -1002,7 +1002,7 @@ static void test_StrStrA(void)
for
(
i
=
0
;
i
<
sizeof
(
StrStrA_cases
)
/
sizeof
(
StrStrA_cases
[
0
]);
i
++
)
for
(
i
=
0
;
i
<
sizeof
(
StrStrA_cases
)
/
sizeof
(
StrStrA_cases
[
0
]);
i
++
)
{
{
ret
=
StrStrA
(
deadbeef
,
StrStrA_cases
[
i
].
search
);
ret
=
StrStrA
(
deadbeef
A
,
StrStrA_cases
[
i
].
search
);
ok
(
ret
==
StrStrA_cases
[
i
].
expect
,
ok
(
ret
==
StrStrA_cases
[
i
].
expect
,
"[%d] Expected StrStrA to return %p, got %p
\n
"
,
"[%d] Expected StrStrA to return %p, got %p
\n
"
,
i
,
StrStrA_cases
[
i
].
expect
,
ret
);
i
,
StrStrA_cases
[
i
].
expect
,
ret
);
...
@@ -1065,7 +1065,7 @@ static void test_StrStrW(void)
...
@@ -1065,7 +1065,7 @@ static void test_StrStrW(void)
static
void
test_StrStrIA
(
void
)
static
void
test_StrStrIA
(
void
)
{
{
static
const
char
*
deadbeef
=
"DeAdBeEf"
;
static
const
char
*
deadbeef
A
=
"DeAdBeEf"
;
const
struct
const
struct
{
{
...
@@ -1074,12 +1074,12 @@ static void test_StrStrIA(void)
...
@@ -1074,12 +1074,12 @@ static void test_StrStrIA(void)
}
StrStrIA_cases
[]
=
}
StrStrIA_cases
[]
=
{
{
{
""
,
NULL
},
{
""
,
NULL
},
{
"DeAd"
,
deadbeef
},
{
"DeAd"
,
deadbeef
A
},
{
"dead"
,
deadbeef
},
{
"dead"
,
deadbeef
A
},
{
"AdBe"
,
deadbeef
+
2
},
{
"AdBe"
,
deadbeef
A
+
2
},
{
"adbe"
,
deadbeef
+
2
},
{
"adbe"
,
deadbeef
A
+
2
},
{
"BeEf"
,
deadbeef
+
4
},
{
"BeEf"
,
deadbeef
A
+
4
},
{
"beef"
,
deadbeef
+
4
},
{
"beef"
,
deadbeef
A
+
4
},
{
"cafe"
,
NULL
},
{
"cafe"
,
NULL
},
};
};
...
@@ -1104,7 +1104,7 @@ static void test_StrStrIA(void)
...
@@ -1104,7 +1104,7 @@ static void test_StrStrIA(void)
for
(
i
=
0
;
i
<
sizeof
(
StrStrIA_cases
)
/
sizeof
(
StrStrIA_cases
[
0
]);
i
++
)
for
(
i
=
0
;
i
<
sizeof
(
StrStrIA_cases
)
/
sizeof
(
StrStrIA_cases
[
0
]);
i
++
)
{
{
ret
=
StrStrIA
(
deadbeef
,
StrStrIA_cases
[
i
].
search
);
ret
=
StrStrIA
(
deadbeef
A
,
StrStrIA_cases
[
i
].
search
);
ok
(
ret
==
StrStrIA_cases
[
i
].
expect
,
ok
(
ret
==
StrStrIA_cases
[
i
].
expect
,
"[%d] Expected StrStrIA to return %p, got %p
\n
"
,
"[%d] Expected StrStrIA to return %p, got %p
\n
"
,
i
,
StrStrIA_cases
[
i
].
expect
,
ret
);
i
,
StrStrIA_cases
[
i
].
expect
,
ret
);
...
...
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