kernel32/tests: Avoid using non-ASCII characters in strings.

This commit is contained in:
Alexandre Julliard 2009-07-07 13:55:58 +02:00
parent 9370c3827c
commit 97db90290b
1 changed files with 2 additions and 2 deletions

View File

@ -320,7 +320,7 @@ static void test_string_conversion(LPBOOL bUsedDefaultChar)
SetLastError(0xdeadbeef); SetLastError(0xdeadbeef);
ret = WideCharToMultiByte(950, 0, dbwcs, -1, mbs, sizeof(mbs), NULL, bUsedDefaultChar); ret = WideCharToMultiByte(950, 0, dbwcs, -1, mbs, sizeof(mbs), NULL, bUsedDefaultChar);
ok(ret == 5, "ret is %d\n", ret); ok(ret == 5, "ret is %d\n", ret);
ok(!strcmp(mbs, "焙所"), "mbs is %s\n", mbs); ok(!strcmp(mbs, "\xb5H\xa9\xd2"), "mbs is %s\n", mbs);
if(bUsedDefaultChar) ok(*bUsedDefaultChar == FALSE, "bUsedDefaultChar is %d\n", *bUsedDefaultChar); if(bUsedDefaultChar) ok(*bUsedDefaultChar == FALSE, "bUsedDefaultChar is %d\n", *bUsedDefaultChar);
ok(GetLastError() == 0xdeadbeef, "GetLastError() is %u\n", GetLastError()); ok(GetLastError() == 0xdeadbeef, "GetLastError() is %u\n", GetLastError());
@ -334,7 +334,7 @@ static void test_string_conversion(LPBOOL bUsedDefaultChar)
SetLastError(0xdeadbeef); SetLastError(0xdeadbeef);
ret = WideCharToMultiByte(950, 0, dbwcs, 1, mbs, sizeof(mbs), NULL, bUsedDefaultChar); ret = WideCharToMultiByte(950, 0, dbwcs, 1, mbs, sizeof(mbs), NULL, bUsedDefaultChar);
ok(ret == 2, "ret is %d\n", ret); ok(ret == 2, "ret is %d\n", ret);
ok(!strcmp(mbs, ""), "mbs is %s\n", mbs); ok(!strcmp(mbs, "\xb5H"), "mbs is %s\n", mbs);
if(bUsedDefaultChar) ok(*bUsedDefaultChar == FALSE, "bUsedDefaultChar is %d\n", *bUsedDefaultChar); if(bUsedDefaultChar) ok(*bUsedDefaultChar == FALSE, "bUsedDefaultChar is %d\n", *bUsedDefaultChar);
ok(GetLastError() == 0xdeadbeef, "GetLastError() is %u\n", GetLastError()); ok(GetLastError() == 0xdeadbeef, "GetLastError() is %u\n", GetLastError());