Home | History | Annotate | Download | only in testing

Lines Matching defs:max

27   const char* max;
107 string min, max;
114 CHECK(prog->PossibleMatchRange(&min, &max, t.maxlen))
119 CHECK(RE2(t.regexp).PossibleMatchRange(&min, &max, t.maxlen));
122 EXPECT_EQ(t.max, max) << t.regexp;
129 string min, max;
131 // Fails because no room to write max.
132 EXPECT_FALSE(RE2("abc").PossibleMatchRange(&min, &max, 0));
134 // Fails because there is no max -- any non-empty string matches
138 PossibleMatchRange(&min, &max, 10))
139 << "min=" << CEscape(min) << ", max=" << CEscape(max);
141 PossibleMatchRange(&min, &max, 10))
142 << "min=" << CEscape(min) << ", max=" << CEscape(max);
144 PossibleMatchRange(&min, &max, 10))
145 << "min=" << CEscape(min) << ", max=" << CEscape(max);
147 PossibleMatchRange(&min, &max, 10))
148 << "min=" << CEscape(min) << ", max=" << CEscape(max);
150 PossibleMatchRange(&min, &max, 10))
151 << "min=" << CEscape(min) << ", max=" << CEscape(max);
153 PossibleMatchRange(&min, &max, 10))
154 << "min=" << CEscape(min) << ", max=" << CEscape(max);
157 EXPECT_FALSE(RE2("*hello").PossibleMatchRange(&min, &max, 10))
158 << "min=" << CEscape(min) << ", max=" << CEscape(max);
202 string min, max;
203 if(!re.PossibleMatchRange(&min, &max, 10)) {
204 // There's no good max for "\\C*". Can't use strcmp
218 CHECK_GE(s, min) << " regexp: " << regexp << " max: " << max;
219 CHECK_LE(s, max) << " regexp: " << regexp << " min: " << min;