Add test for correctly interpreting %% printf format string conversion

specifier.
This commit is contained in:
2005-05-11 12:00:34 +00:00 committed by Alexandre Julliard
parent 77cddfe7b6
commit 6cfcda9959
1 changed files with 5 additions and 0 deletions

View File

@ -269,6 +269,11 @@ static void test_sprintf( void )
r = sprintf(buffer, format, 0x100+'X');
ok(!strcmp(buffer,"xXx"), "failed\n");
ok( r==3, "return count wrong\n");
format = "%%0";
r = sprintf(buffer, format);
ok(!strcmp(buffer,"%0"), "failed: \"%s\"\n", buffer);
ok( r==2, "return count wrong\n");
}
static void test_swprintf( void )