Lines Matching refs:gTests
46 } gTests[] = {
53 for (size_t i = 0; i < SK_ARRAY_COUNT(gTests); ++i) {
54 const auto match = EOS::Match(gTests[i].fInput);
55 REPORTER_ASSERT(r, match == gTests[i].fMatch);
56 REPORTER_ASSERT(r, match.fNext == (match ? gTests[i].fInput : nullptr));
64 } gTests[] = {
73 for (size_t i = 0; i < SK_ARRAY_COUNT(gTests); ++i) {
74 const auto match = LIT<'X'>::Match(gTests[i].fInput);
75 REPORTER_ASSERT(r, match == gTests[i].fMatch);
76 REPORTER_ASSERT(r, match.fNext == (match ? gTests[i].fInput + 1 : nullptr));
91 } gTests[] = {
108 for (size_t i = 0; i < SK_ARRAY_COUNT(gTests); ++i) {
109 const auto match = Alpha::Match(gTests[i].fInput);
110 REPORTER_ASSERT(r, match == gTests[i].fMatch);
111 REPORTER_ASSERT(r, match.fNext == (match ? gTests[i].fInput + 1 : nullptr));
113 REPORTER_ASSERT(r, *match == gTests[i].fMatchValue);
123 } gTests[] = {
134 for (size_t i = 0; i < SK_ARRAY_COUNT(gTests); ++i) {
135 const auto match = Digit::Match(gTests[i].fInput);
136 REPORTER_ASSERT(r, match == gTests[i].fMatch);
137 REPORTER_ASSERT(r, match.fNext == (match ? gTests[i].fInput + 1 : nullptr));
139 REPORTER_ASSERT(r, *match == gTests[i].fMatchValue);
148 } gTests[] = {
156 for (size_t i = 0; i < SK_ARRAY_COUNT(gTests); ++i) {
157 const auto m = Opt<LIT<'f', 'o', 'o'>>::Match(gTests[i].fInput);
159 REPORTER_ASSERT(r, m->fValue.isValid() == gTests[i].fMatch);
219 } gTests[] = {
227 for (size_t i = 0; i < SK_ARRAY_COUNT(gTests); ++i) {
228 const auto matchAny = Any<LIT<'f', 'o', 'o'>>::Match(gTests[i].fInput);
230 REPORTER_ASSERT(r, matchAny->fValues.count() == gTests[i].fCount);
232 const auto matchSome = Some<LIT<'f', 'o', 'o'>>::Match(gTests[i].fInput);
233 REPORTER_ASSERT(r, matchSome == (gTests[i].fCount > 0));
235 matchSome->get<1>().fValues.count() == gTests[i].fCount - 1);