Home | History | Annotate | Download | only in testing

Lines Matching defs:Test

5 // Test parse.cc, dump.cc, and tostring.cc.
9 #include "util/test.h"
16 struct Test {
27 static Test tests[] = {
111 // Test precedences
117 // Test flattening.
124 // Test Perl quoted literals
130 // Test Perl \A and \z
140 // Test named captures
201 void TestParse(const Test* tests, int ntests, Regexp::ParseFlags flags,
231 // Test that regexps parse to expected structures.
232 TEST(TestParse, SimpleRegexps) {
236 Test foldcase_tests[] = {
248 // Test that parsing with FoldCase works.
249 TEST(TestParse, FoldCase) {
253 Test literal_tests[] = {
257 // Test that parsing with Literal works.
258 TEST(TestParse, Literal) {
262 Test matchnl_tests[] = {
269 // Test that parsing with MatchNL works.
271 TEST(TestParse, MatchNL) {
275 Test nomatchnl_tests[] = {
282 // Test that parsing without MatchNL works.
283 TEST(TestParse, NoMatchNL) {
287 Test prefix_tests[] = {
304 // Test that prefix factoring works.
305 TEST(TestParse, Prefix) {
356 // Test that parser rejects bad regexps.
357 TEST(TestParse, InvalidRegexps) {
380 // Test that ToString produces original regexp or equivalent one.
381 TEST(TestToString, EquivalentParse) {
402 // Test that if we parse the new regexp we get the same structure.
417 // Test that capture error args are correct.
418 TEST(NamedCaptures, ErrorArgs) {
422 re = Regexp::Parse("test(?P<name", Regexp::LikePerl, &status);
427 re = Regexp::Parse("test(?P<space bar>z)", Regexp::LikePerl, &status);