shlwapi/tests: Rename a string variable for clarity.
This commit is contained in:
parent
f2135efe48
commit
f8c88bc3d7
|
@ -964,7 +964,7 @@ if (0)
|
||||||
|
|
||||||
static void test_StrStrA(void)
|
static void test_StrStrA(void)
|
||||||
{
|
{
|
||||||
static const char *deadbeef = "DeAdBeEf";
|
static const char *deadbeefA = "DeAdBeEf";
|
||||||
|
|
||||||
const struct
|
const struct
|
||||||
{
|
{
|
||||||
|
@ -973,11 +973,11 @@ static void test_StrStrA(void)
|
||||||
} StrStrA_cases[] =
|
} StrStrA_cases[] =
|
||||||
{
|
{
|
||||||
{"", NULL},
|
{"", NULL},
|
||||||
{"DeAd", deadbeef},
|
{"DeAd", deadbeefA},
|
||||||
{"dead", NULL},
|
{"dead", NULL},
|
||||||
{"AdBe", deadbeef + 2},
|
{"AdBe", deadbeefA + 2},
|
||||||
{"adbe", NULL},
|
{"adbe", NULL},
|
||||||
{"BeEf", deadbeef + 4},
|
{"BeEf", deadbeefA + 4},
|
||||||
{"beef", NULL},
|
{"beef", NULL},
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -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(deadbeefA, 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)
|
||||||
|
|
||||||
static void test_StrStrIA(void)
|
static void test_StrStrIA(void)
|
||||||
{
|
{
|
||||||
static const char *deadbeef = "DeAdBeEf";
|
static const char *deadbeefA = "DeAdBeEf";
|
||||||
|
|
||||||
const struct
|
const struct
|
||||||
{
|
{
|
||||||
|
@ -1074,12 +1074,12 @@ static void test_StrStrIA(void)
|
||||||
} StrStrIA_cases[] =
|
} StrStrIA_cases[] =
|
||||||
{
|
{
|
||||||
{"", NULL},
|
{"", NULL},
|
||||||
{"DeAd", deadbeef},
|
{"DeAd", deadbeefA},
|
||||||
{"dead", deadbeef},
|
{"dead", deadbeefA},
|
||||||
{"AdBe", deadbeef + 2},
|
{"AdBe", deadbeefA + 2},
|
||||||
{"adbe", deadbeef + 2},
|
{"adbe", deadbeefA + 2},
|
||||||
{"BeEf", deadbeef + 4},
|
{"BeEf", deadbeefA + 4},
|
||||||
{"beef", deadbeef + 4},
|
{"beef", deadbeefA + 4},
|
||||||
{"cafe", NULL},
|
{"cafe", NULL},
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -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(deadbeefA, 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);
|
||||||
|
|
Loading…
Reference in New Issue