From c23a9257f0c7286c9518eb4a266a788e352c9f36 Mon Sep 17 00:00:00 2001 From: Uwe Bonnes Date: Fri, 24 Oct 2003 04:24:08 +0000 Subject: [PATCH] Added a test case for sprintf. --- dlls/msvcrt/tests/scanf.c | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/dlls/msvcrt/tests/scanf.c b/dlls/msvcrt/tests/scanf.c index 6e833fb1859..110adf1af6c 100644 --- a/dlls/msvcrt/tests/scanf.c +++ b/dlls/msvcrt/tests/scanf.c @@ -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(); }