Lines Matching refs:tests
51 } tests[] = {
239 for (i = 0; i < sizeof(tests)/sizeof(tests[0]); ++i) {
242 tm = gmtime (&tests[i].t);
244 for (j = 0; tests[i].vals[j].format != NULL; ++j) {
250 len = strftime (buf, sizeof(buf), tests[i].vals[j].format, tm);
253 tests[i].vals[j].format, (unsigned long)len,
258 if (strcmp (buf, tests[i].vals[j].result) != 0) {
260 tests[i].vals[j].format, buf,
261 tests[i].vals[j].result);
266 ptr = strptime (tests[i].vals[j].result,
267 tests[i].vals[j].format,
272 tests[i].vals[j].result,
273 tests[i].vals[j].format);
276 strftime (buf, sizeof(buf), tests[i].vals[j].format, &tm2);
277 if (strcmp (buf, tests[i].vals[j].result) != 0) {
279 tests[i].vals[j].format,
280 buf, tests[i].vals[j].result);