changeset 404:a9152a6ee9db

Adjust tests.
author Matti Hamalainen <ccr@tnsp.org>
date Mon, 07 Mar 2016 10:13:29 +0200
parents 2c83111b0703
children 4e8f26a49e27
files tests.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/tests.c	Mon Mar 07 10:06:46 2016 +0200
+++ b/tests.c	Mon Mar 07 10:13:29 2016 +0200
@@ -352,7 +352,7 @@
     //
     // Test series #1
     //
-    char *i_fmts[] = { "", "05", "5", ".5", "7.5", "07.5", "3", "3.2", "3", ".0", "0" };
+    char *i_fmts[] = { "", "05", "5", ".5", "8.5", "08.5", "3", "3.2", "3", ".0", "0" };
     char *i_mods[] = { "", "-", "+", "#", };
     char *i_types[] = { "d", "u", "i", "x", "X", "o", };
     if (test_set_start("printf() integer"))
@@ -394,7 +394,7 @@
     if (test_set_start("printf() float"))
     {
         double f_vals[] = { 1, 2, 3, 2.02, 612342.234, -2.07, -612342.12, 437692.9876543219, 0x1fff, 0x8000000, 0.15625 };
-        char *f_fmts[] = { "%f", "%1.1f", "%7.5f", "%5f", "%-5f", "", "%-5.2f", "%07.5f" };
+        char *f_fmts[] = { "%f", "%1.1f", "%8.5f", "%5f", "%-5f", "", "%-5.2f", "%08.5f" };
 
         for (i1 = 0; i1 < NCOUNT(f_vals); i1++)
         {