comparison tests.c @ 749:feadd3678d2e

Oops, typofix, missing comma separator between string elements :O
author Matti Hamalainen <ccr@tnsp.org>
date Wed, 21 Dec 2022 17:23:10 +0200
parents 3f59c5ab7fea
children 1cb9454ec569
comparison
equal deleted inserted replaced
748:3f59c5ab7fea 749:feadd3678d2e
921 921
922 if (test_set_start("printf() string")) 922 if (test_set_start("printf() string"))
923 { 923 {
924 char *s_vals[] = { "", "XYZXYZ", "xxx yyy zzz ppp fff", NULL, "X", "abcde", "dx", "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ", }; 924 char *s_vals[] = { "", "XYZXYZ", "xxx yyy zzz ppp fff", NULL, "X", "abcde", "dx", "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ", };
925 // char *s_fmts[] = { "%s", "%2s", "%-2s", "%5s", "%-5s", "%16s", "%-16s", "%1s", "%-1s", "% 2s", "%03s", "% -12s", "% 03s", "%-.15s", "%.8s" }; 925 // char *s_fmts[] = { "%s", "%2s", "%-2s", "%5s", "%-5s", "%16s", "%-16s", "%1s", "%-1s", "% 2s", "%03s", "% -12s", "% 03s", "%-.15s", "%.8s" };
926 char *s_fmts[] = { "", "-" " ", "0", " 0", ".", "-.", }; 926 char *s_fmts[] = { "", "-", " ", "0", " 0", ".", "-.", };
927 int s_widths[] = { 0, 1, 2, 5, 16, }; 927 int s_widths[] = { 0, 1, 2, 5, 16, };
928 928
929 for (i1 = 0; i1 < NCOUNT(s_vals); i1++) 929 for (i1 = 0; i1 < NCOUNT(s_vals); i1++)
930 for (i2 = 0; i2 < NCOUNT(s_fmts); i2++) 930 for (i2 = 0; i2 < NCOUNT(s_fmts); i2++)
931 for (i3 = 0; i3 < NCOUNT(s_widths); i3++) 931 for (i3 = 0; i3 < NCOUNT(s_widths); i3++)