Home | History | Annotate | Download | only in testing

Lines Matching refs:correct

453 // Checks whether r is okay given that correct is the right answer.
456 static bool ResultOkay(const Result& r, const Result& correct) {
459 if (r.matched != correct.matched)
463 if (correct.submatch[i].begin() != r.submatch[i].begin() ||
464 correct.submatch[i].size() != r.submatch[i].size())
477 Result correct;
478 RunSearch(kEngineBacktrack, text, context, anchor, &correct);
479 if (correct.skipped) {
501 if (ResultOkay(r, correct)) {
520 if (r.matched != correct.matched) {
529 if (r.submatch[i].begin() != correct.submatch[i].begin() ||
530 r.submatch[i].end() != correct.submatch[i].end()) {
534 FormatCapture(text, correct