Lines Matching refs:tests
39 } tests[] = { variable
198 for (i = 0; i < sizeof (tests) / sizeof (tests[0]); ++i) in main()
202 re_set_syntax (tests[i].syntax); in main()
204 err = re_compile_pattern (tests[i].pattern, strlen (tests[i].pattern), in main()
215 if (optimized != tests[i].optimize) in main()
218 i, optimized ? "" : "not ", tests[i].optimize ? "" : " not"); in main()
222 int str_len = strlen (tests[i].string); in main()
223 res = re_search (®buf, tests[i].string, str_len, 0, str_len, NULL); in main()
224 if (res != tests[i].res) in main()
232 res = re_search (®buf, tests[i].string, str_len, str_len, -str_len, in main()
234 if (res != tests[i].res) in main()
243 re_set_syntax (tests[i].syntax | RE_ICASE); in main()
245 err = re_compile_pattern (tests[i].pattern, strlen (tests[i].pattern), in main()
263 res = re_search (®buf, tests[i].string, str_len, 0, str_len, NULL); in main()
264 if (res != tests[i].res) in main()
272 res = re_search (®buf, tests[i].string, str_len, str_len, -str_len, in main()
274 if (res != tests[i].res) in main()