Lines Matching refs:tests
27 static Test tests[] = {
201 void TestParse(const Test* tests, int ntests, Regexp::ParseFlags flags,
207 if (tests[i].flags != 0) {
208 f = tests[i].flags & ~TestZeroFlags;
210 re[i] = Regexp::Parse(tests[i].regexp, f, &status);
211 CHECK(re[i] != NULL) << " " << tests[i].regexp << " "
214 EXPECT_EQ(string(tests[i].parse), s) << "Regexp: " << tests[i].regexp
215 << "\nparse: " << tests[i].parse << " s: " << s << " flag=" << f;
220 EXPECT_EQ(string(tests[i].parse) == tests[j].parse,
222 << "Regexp: " << tests[i].regexp << " " << tests[j].regexp;
233 TestParse(tests, arraysize(tests), kTestFlags, "simple");
382 for (int i = 0; i < arraysize(tests); i++) {
385 if (tests[i].flags != 0) {
386 f = tests[i].flags & ~TestZeroFlags;
388 Regexp* re = Regexp::Parse(tests[i].regexp, f, &status);
389 CHECK(re != NULL) << " " << tests[i].regexp << " " << status.Text();
391 EXPECT_EQ(string(tests[i].parse), s) << " " << tests[i].regexp << " " << string(tests[i].parse) << " " << s;
393 if (t != tests[i].regexp) {
399 // CHECK_LT(t.size(), strlen(tests[i].regexp))
400 // << " t=" << t << " regexp=" << tests[i].regexp;
408 LOG(INFO) << "ToString(" << tests[i].regexp << ") = " << t;