Mercurial > hg > th-libs
changeset 289:7122026b0ece
Add more subtests.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Mon, 22 Feb 2016 14:31:29 +0200 |
parents | 89c7696acb82 |
children | 01e7edd68075 |
files | tests.c |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/tests.c Mon Feb 22 14:28:31 2016 +0200 +++ b/tests.c Mon Feb 22 14:31:29 2016 +0200 @@ -272,8 +272,8 @@ if (test_set_start("printf() function family #2")) { - char *s_vals[] = { "", "asdf", "xxx yyy zzz ppp fff", NULL, "X", "abcde", }; - char *s_fmts[] = { "%s", "%2s", "%-2s", "%5s", "%-5s", "%16s", "%-16s", "%1s", "%-1s", }; + 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", }; for (i1 = 0; i1 < sizeof(s_vals) / sizeof(s_vals[0]); i1++) for (i2 = 0; i2 < sizeof(s_fmts) / sizeof(s_fmts[0]); i2++)