Lines Matching refs:tests
11 } tests[] = {
48 for (n = 0; n < sizeof(tests) / sizeof(tests[0]); ++n) {
49 ssize_t res = swprintf(buf, tests[n].n, L"%s", tests[n].str);
51 if (tests[n].exp < 0 && res >= 0) {
53 tests[n].n, tests[n].str);
55 } else if (tests[n].exp >= 0 && tests[n].exp != res) {
57 tests[n].n, tests[n].str, tests[n].exp, res);
60 printf("swprintf (buf, %Zu, L\"%%s\", \"%s\") OK\n", tests[n].n,
61 tests[n].str);