changeset 301:5a758be2769e

More tests.
author Matti Hamalainen <ccr@tnsp.org>
date Mon, 22 Feb 2016 18:34:26 +0200
parents 385d0b40a6c8
children 3f05f6fb5dfd
files tests.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/tests.c	Mon Feb 22 18:31:37 2016 +0200
+++ b/tests.c	Mon Feb 22 18:34:26 2016 +0200
@@ -286,7 +286,7 @@
     if (test_set_start("printf() string"))
     {
         char *s_vals[] = { "", "XYZXYZ", "xxx yyy zzz ppp fff", NULL, "X", "abcde", "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ", };
-        char *s_fmts[] = { "%s", "%2s", "%-2s", "%5s", "%-5s", "%16s", "%-16s", "%1s", "%-1s", "% 2s", "%03s", "% -12s", "% 03s", };
+        char *s_fmts[] = { "%s", "%2s", "%-2s", "%5s", "%-5s", "%16s", "%-16s", "%1s", "%-1s", "% 2s", "%03s", "% -12s", "% 03s", "%-.15s", "%.8s" };
 
         for (i1 = 0; i1 < sizeof(s_vals) / sizeof(s_vals[0]); i1++)
         for (i2 = 0; i2 < sizeof(s_fmts) / sizeof(s_fmts[0]); i2++)