Commit 3b5619a8 authored by Akihiro Sagawa's avatar Akihiro Sagawa Committed by Alexandre Julliard

user32/tests: Add wsprintfA %C conversion tests.

parent 92014581
......@@ -70,6 +70,9 @@ static void wsprintfATest(void)
{ fffeW, "%.2S", "?", 1 },
{ wineW, "%.2S", "??", 2 },
{ star, "%.1s", partial, 1 },
{ (void *)0x2606, "%2C", star, 2 },
{ (void *)0xfffd, "%C", "?", 1 },
{ (void *)0xe199, "%2c", " \x99", 2 },
};
CPINFO cpinfo;
unsigned int i;
......@@ -108,10 +111,12 @@ static void wsprintfATest(void)
memset(buf, 0x11, sizeof(buf));
rc = wsprintfA(buf, testcase[i].fmt, testcase[i].input);
todo_wine_if( i == 7 )
ok(rc == testcase[i].rc,
"%u: expected %d, got %d\n",
i, testcase[i].rc, rc);
todo_wine_if( i == 7 || i == 8 || i == 9 )
ok(!strcmp(buf, testcase[i].str),
"%u: expected %s, got %s\n",
i, wine_dbgstr_a(testcase[i].str), wine_dbgstr_an(buf, rc));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment