Test case for sprintf ( [Bug 1789])

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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();
 }


[Index of Archives]     [Gimp for Windows]     [Red Hat]     [Samba]     [Yosemite Camping]     [Graphics Cards]     [Wine Home]

  Powered by Linux