Mercurial > hg > th-libs
changeset 295:bd69fdaad70a
Rename test sets.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Mon, 22 Feb 2016 16:05:53 +0200 |
parents | 3835423074c0 |
children | ec8357d02a52 |
files | tests.c |
diffstat | 1 files changed, 3 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/tests.c Mon Feb 22 16:04:14 2016 +0200 +++ b/tests.c Mon Feb 22 16:05:53 2016 +0200 @@ -263,7 +263,7 @@ // // Test series #1 // - if (test_set_start("printf() function family #1")) + if (test_set_start("printf() integer")) { int i_vals[] = { 2, 612342, -2, -612342, 0x1fff, 0x8000000, }; char *i_fmts[] = { "%d", "%x", "%05d", "%5d", "%-5d", "%05x", "%5x", "", "% 3d", "% 3o", "%+3o", "%+3d", }; @@ -273,7 +273,7 @@ test_snprintf(i_fmts[i2], i_vals); } - if (test_set_start("printf() function family #2")) + 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", }; @@ -284,7 +284,7 @@ } - if (test_set_start("printf() function family #3")) + if (test_set_start("printf() char")) { test_snprintf("a%cBC", 'x'); test_snprintf("%c", 'x');