Lines Matching refs:tests
33 } tests[] = variable
59 for (n = 0; n < sizeof (tests) / sizeof (tests[0]); ++n) in do_test()
64 if (tests[n].only_C_locale && strcmp (loc, "C") != 0) in do_test()
67 if (swscanf (tests[n].arg, tests[n].fmt, buf) != tests[n].retval) in do_test()
70 tests[n].arg, tests[n].fmt); in do_test()
73 else if (tests[n].retval != 0 && strcmp (buf, tests[n].res) != 0) in do_test()
76 tests[n].arg, tests[n].fmt, buf, tests[n].res); in do_test()
81 tests[n].arg, tests[n].fmt); in do_test()
83 if (swscanf (tests[n].arg, tests[n].wfmt, wbuf) != tests[n].retval) in do_test()
86 tests[n].arg, tests[n].wfmt); in do_test()
89 else if (tests[n].retval != 0 && wcscmp (wbuf, tests[n].wres) != 0) in do_test()
92 tests[n].arg, tests[n].wfmt, wbuf, tests[n].wres); in do_test()
97 tests[n].arg, tests[n].wfmt); in do_test()