Lines Matching refs:tests
40 } tests[] = { variable
107 for (i = 0; i < sizeof (tests) / sizeof (tests[0]); ++i) in main()
109 n = regcomp (&re, tests[i].pattern, tests[i].flags); in main()
114 printf ("%s: regcomp %lu failed: %s\n", tests[i].pattern, i, buf); in main()
119 if (regexec (&re, tests[i].string, tests[i].nmatch, rm, 0)) in main()
121 printf ("%s: regexec %lu failed\n", tests[i].pattern, i); in main()
127 for (n = 0; n < tests[i].nmatch; ++n) in main()
128 if (rm[n].rm_so != tests[i].rm[n].rm_so in main()
129 || rm[n].rm_eo != tests[i].rm[n].rm_eo) in main()
131 if (tests[i].rm[n].rm_so == -1 && tests[i].rm[n].rm_eo == -1) in main()
134 tests[i].pattern, i, n, rm[n].rm_so, rm[n].rm_eo); in main()