comparison tests.c @ 352:75b20d9bef64

Add few more tests.
author Matti Hamalainen <ccr@tnsp.org>
date Thu, 25 Feb 2016 09:17:23 +0200
parents 75b5e4c37e3a
children d7f43fce0dce
comparison
equal deleted inserted replaced
351:b040dc0f77cf 352:75b20d9bef64
372 372
373 if (test_set_start("printf() char")) 373 if (test_set_start("printf() char"))
374 { 374 {
375 const char c_val = 'x'; 375 const char c_val = 'x';
376 const char *c_msg = "x"; 376 const char *c_msg = "x";
377 char *c_fmts[] = { "a%cBC", "%c", "", "%0c", "%1c", "% c", "%-3c", "%3c", "%.3c", "%-.3c", "%-3.3c", "%.c" }; 377 char *c_fmts[] = { "a%cBC", "%c", "", "%0c", "%1c", "% c", "%-3c", "%3c", "%.3c", "%-.3c", "%-3.3c", "%.c", "%05c", "%-05c", };
378 378
379 for (i1 = 0; i1 < NCOUNT(c_fmts); i1++) 379 for (i1 = 0; i1 < NCOUNT(c_fmts); i1++)
380 test_snprintf(c_msg, c_fmts[i1], c_val); 380 test_snprintf(c_msg, c_fmts[i1], c_val);
381 } 381 }
382 382