Test case for sprintf ( [Bug 1789])
Uwe Bonnes
bon at elektron.ikp.physik.tu-darmstadt.de
Wed Oct 22 14:29:58 CDT 2003
Index: wine/dlls/msvcrt/tests/scanf.c
===================================================================
RCS file: /home/wine/wine/dlls/msvcrt/tests/scanf.c,v
retrieving revision 1.7
diff -u -r1.7 scanf.c
--- wine/dlls/msvcrt/tests/scanf.c 10 Oct 2003 00:00:35 -0000 1.7
+++ wine/dlls/msvcrt/tests/scanf.c 22 Oct 2003 19:27:13 -0000
@@ -75,8 +75,19 @@
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();
}
More information about the wine-patches
mailing list