# HG changeset patch # User Matti Hamalainen # Date 1456144111 -7200 # Node ID 89c7696acb828d4e5028cacca46f3088a2d66966 # Parent e214637b0645e001633d9be6cae90a928189e414 Add some tests. diff -r e214637b0645 -r 89c7696acb82 tests.c --- a/tests.c Mon Feb 22 13:51:14 2016 +0200 +++ b/tests.c Mon Feb 22 14:28:31 2016 +0200 @@ -279,9 +279,18 @@ for (i2 = 0; i2 < sizeof(s_fmts) / sizeof(s_fmts[0]); i2++) test_snprintf(s_fmts[i2], s_vals); + } + + if (test_set_start("printf() function family #3")) + { test_snprintf("a%cBC", 'x'); test_snprintf("%c", 'x'); test_snprintf("", 'x'); + test_snprintf("%0c", 'x'); + test_snprintf("%1c", 'x'); + test_snprintf("% c", 'x'); + test_snprintf("%-3c", 'x'); + test_snprintf("%3c", 'x'); } //