Lines Matching refs:EXPECT_TRUE
202 EXPECT_TRUE(RE::FullMatch(TypeParam(""), empty));
206 EXPECT_TRUE(RE::FullMatch(TypeParam("az"), re));
207 EXPECT_TRUE(RE::FullMatch(TypeParam("axyz"), re));
215 EXPECT_TRUE(RE::PartialMatch(TypeParam(""), empty));
216 EXPECT_TRUE(RE::PartialMatch(TypeParam("a"), empty));
219 EXPECT_TRUE(RE::PartialMatch(TypeParam("az"), re));
220 EXPECT_TRUE(RE::PartialMatch(TypeParam("axyz"), re));
221 EXPECT_TRUE(RE::PartialMatch(TypeParam("baz"), re));
222 EXPECT_TRUE(RE::PartialMatch(TypeParam("azy"), re));
238 EXPECT_TRUE(IsInSet('b', "bcd"));
239 EXPECT_TRUE(IsInSet('b', "ab"));
252 EXPECT_TRUE(IsDigit('0'));
253 EXPECT_TRUE(IsDigit('1'));
254 EXPECT_TRUE(IsDigit('5'));
255 EXPECT_TRUE(IsDigit('9'));
281 EXPECT_TRUE(IsRepeat('?'));
282 EXPECT_TRUE(IsRepeat('*'));
283 EXPECT_TRUE(IsRepeat('+'));
295 EXPECT_TRUE(IsWhiteSpace(' '));
296 EXPECT_TRUE(IsWhiteSpace('\n'));
297 EXPECT_TRUE(IsWhiteSpace('\r'));
298 EXPECT_TRUE(IsWhiteSpace('\t'));
299 EXPECT_TRUE(IsWhiteSpace('\v'));
300 EXPECT_TRUE(IsWhiteSpace('\f'));
312 EXPECT_TRUE(IsWordChar('a'));
313 EXPECT_TRUE(IsWordChar('b'));
314 EXPECT_TRUE(IsWordChar('A'));
315 EXPECT_TRUE(IsWordChar('Z'));
319 EXPECT_TRUE(IsWordChar('0'));
320 EXPECT_TRUE(IsWordChar('1'));
321 EXPECT_TRUE(IsWordChar('7'));
322 EXPECT_TRUE(IsWordChar('9'));
326 EXPECT_TRUE(IsWordChar('_'));
350 EXPECT_TRUE(IsValidEscape('.'));
351 EXPECT_TRUE(IsValidEscape('-'));
352 EXPECT_TRUE(IsValidEscape('^'));
353 EXPECT_TRUE(IsValidEscape('$'));
354 EXPECT_TRUE(IsValidEscape('('));
355 EXPECT_TRUE(IsValidEscape(']'));
356 EXPECT_TRUE(IsValidEscape('{'));
357 EXPECT_TRUE(IsValidEscape('|'));
361 EXPECT_TRUE(IsValidEscape('d'));
362 EXPECT_TRUE(IsValidEscape('D'));
363 EXPECT_TRUE(IsValidEscape('s'));
364 EXPECT_TRUE(IsValidEscape('S'));
365 EXPECT_TRUE(IsValidEscape('w'));
366 EXPECT_TRUE(IsValidEscape('W'));
375 EXPECT_TRUE(AtomMatchesChar(true, '\\', '\\'));
376 EXPECT_TRUE(AtomMatchesChar(true, '_', '_'));
377 EXPECT_TRUE(AtomMatchesChar(true, '+', '+'));
378 EXPECT_TRUE(AtomMatchesChar(true, '.', '.'));
386 EXPECT_TRUE(AtomMatchesChar(true, 'd', '0'));
387 EXPECT_TRUE(AtomMatchesChar(true, 'd', '9'));
394 EXPECT_TRUE(AtomMatchesChar(true, 'D', '\0'));
395 EXPECT_TRUE(AtomMatchesChar(true, 'D', 'a'));
396 EXPECT_TRUE(AtomMatchesChar(true, 'D', '-'));
405 EXPECT_TRUE(AtomMatchesChar(true, 's', ' '));
406 EXPECT_TRUE(AtomMatchesChar(true, 's', '\n'));
407 EXPECT_TRUE(AtomMatchesChar(true, 's', '\t'));
414 EXPECT_TRUE(AtomMatchesChar(true, 'S', '\0'));
415 EXPECT_TRUE(AtomMatchesChar(true, 'S', 'a'));
416 EXPECT_TRUE(AtomMatchesChar(true, 'S', '9'));
425 EXPECT_TRUE(AtomMatchesChar(true, 'w', '0'));
426 EXPECT_TRUE(AtomMatchesChar(true, 'w', 'b'));
427 EXPECT_TRUE(AtomMatchesChar(true, 'w', 'C'));
428 EXPECT_TRUE(AtomMatchesChar(true, 'w', '_'));
437 EXPECT_TRUE(AtomMatchesChar(true, 'W', '\0'));
438 EXPECT_TRUE(AtomMatchesChar(true, 'W', '*'));
439 EXPECT_TRUE(AtomMatchesChar(true, 'W', '\n'));
454 EXPECT_TRUE(AtomMatchesChar(true, 'f', '\f'));
455 EXPECT_TRUE(AtomMatchesChar(true, 'n', '\n'));
456 EXPECT_TRUE(AtomMatchesChar(true, 'r', '\r'));
457 EXPECT_TRUE(AtomMatchesChar(true, 't', '\t'));
458 EXPECT_TRUE(AtomMatchesChar(true, 'v', '\v'));
464 EXPECT_TRUE(AtomMatchesChar(false, '.', '\0'));
465 EXPECT_TRUE(AtomMatchesChar(false, '.', '.'));
466 EXPECT_TRUE(AtomMatchesChar(false, '.', 'a'));
467 EXPECT_TRUE(AtomMatchesChar(false, '.', ' '));
475 EXPECT_TRUE(AtomMatchesChar(false, '$', '$'));
476 EXPECT_TRUE(AtomMatchesChar(false, '5', '5'));
477 EXPECT_TRUE(AtomMatchesChar(false, 'Z', 'Z'));
517 EXPECT_TRUE(ValidateRegex(""));
518 EXPECT_TRUE(ValidateRegex("a"));
519 EXPECT_TRUE(ValidateRegex(".*"));
520 EXPECT_TRUE(ValidateRegex("^a_+"));
521 EXPECT_TRUE(ValidateRegex("^a\\t\\&?"));
522 EXPECT_TRUE(ValidateRegex("09*$"));
523 EXPECT_TRUE(ValidateRegex("^Z$"));
524 EXPECT_TRUE(ValidateRegex("a\\^Z\\$\\(\\)\\|\\[\\]\\{\\}"));
533 EXPECT_TRUE(MatchRepetitionAndRegexAtHead(false, 'a', '?', "b", "ba"));
535 EXPECT_TRUE(MatchRepetitionAndRegexAtHead(false, 'a', '?', "b", "ab"));
536 EXPECT_TRUE(MatchRepetitionAndRegexAtHead(false, '#', '?', ".", "##"));
543 EXPECT_TRUE(MatchRepetitionAndRegexAtHead(false, '.', '*', "b", "bc"));
545 EXPECT_TRUE(MatchRepetitionAndRegexAtHead(false, '.', '*', "b", "abc"));
547 EXPECT_TRUE(MatchRepetitionAndRegexAtHead(true, 'w', '*', "-", "ab_1-g"));
556 EXPECT_TRUE(MatchRepetitionAndRegexAtHead(false, '.', '+', "b", "abc"));
558 EXPECT_TRUE(MatchRepetitionAndRegexAtHead(true, 'w', '+', "-", "ab_1-g"));
562 EXPECT_TRUE(MatchRegexAtHead("", ""));
563 EXPECT_TRUE(MatchRegexAtHead("", "ab"));
569 EXPECT_TRUE(MatchRegexAtHead("$", ""));
570 EXPECT_TRUE(MatchRegexAtHead("a$", "a"));
577 EXPECT_TRUE(MatchRegexAtHead("\\sa", "\nab"));
578 EXPECT_TRUE(MatchRegexAtHead("\\d", "1a"));
585 EXPECT_TRUE(MatchRegexAtHead(".*a", "bc12-ab"));
586 EXPECT_TRUE(MatchRegexAtHead("a?b", "b"));
587 EXPECT_TRUE(MatchRegexAtHead("a?b", "ab"));
595 EXPECT_TRUE(MatchRegexAtHead("\\(*a", "((((ab"));
596 EXPECT_TRUE(MatchRegexAtHead("\\^?b", "^b"));
597 EXPECT_TRUE(MatchRegexAtHead("\\\\?b", "b"));
598 EXPECT_TRUE(MatchRegexAtHead("\\\\?b", "\\b"));
604 EXPECT_TRUE(MatchRegexAtHead("ab.*c", "ab-fsc"));
615 EXPECT_TRUE(MatchRegexAnywhere("^a", "ab"));
616 EXPECT_TRUE(MatchRegexAnywhere("^", "ab"));
617 EXPECT_TRUE(MatchRegexAnywhere("^$", ""));
626 EXPECT_TRUE(MatchRegexAnywhere("\\w+", "ab1_ - 5"));
627 EXPECT_TRUE(MatchRegexAnywhere(".*=", "="));
628 EXPECT_TRUE(MatchRegexAnywhere("x.*ab?.*bc", "xaaabc"));
632 EXPECT_TRUE(MatchRegexAnywhere("\\w+", "$$$ ab1_ - 5"));
633 EXPECT_TRUE(MatchRegexAnywhere("\\.+=", "= ...="));
663 EXPECT_TRUE(RE::FullMatch("", empty));
667 EXPECT_TRUE(RE::FullMatch("a", re1));
670 EXPECT_TRUE(RE::FullMatch("az", re));
671 EXPECT_TRUE(RE::FullMatch("axyz", re));
679 EXPECT_TRUE(RE::PartialMatch("", empty));
680 EXPECT_TRUE(RE::PartialMatch("a", empty));
683 EXPECT_TRUE(RE::PartialMatch("az", re));
684 EXPECT_TRUE(RE::PartialMatch("axyz", re));
685 EXPECT_TRUE(RE::PartialMatch("baz", re));
686 EXPECT_TRUE(RE::PartialMatch("azy", re));