Added a test case for sprintf.

This commit is contained in:
Uwe Bonnes 2003-10-24 04:24:08 +00:00 committed by Alexandre Julliard
parent d8bd18e639
commit c23a9257f0
1 changed files with 11 additions and 0 deletions

View File

@ -75,8 +75,19 @@ static void test_sscanf( void )
ok(number_so_far == 1,"Read wrong arg for \"%%n\" %d instead of 2",number_so_far);
}
static void test_sprintf( void )
{
char buffer[100];
double pnumber=789456123;
sprintf(buffer,"%+#23.15e",pnumber);
todo_wine
{
ok(strstr(buffer,"e+008") != 0,"Sprintf different \"%s\"\n",buffer);
}
}
START_TEST(scanf)
{
test_sscanf();
test_sprintf();
}