• Home
  • Raw
  • Download

Lines Matching refs:gTests

47     } gTests[] = {  in test_EOS()  local
54 for (size_t i = 0; i < SK_ARRAY_COUNT(gTests); ++i) { in test_EOS()
55 const auto match = EOS::Match(gTests[i].fInput); in test_EOS()
56 REPORTER_ASSERT(r, match == gTests[i].fMatch); in test_EOS()
57 REPORTER_ASSERT(r, match.fNext == (match ? gTests[i].fInput : nullptr)); in test_EOS()
65 } gTests[] = { in test_LIT() local
74 for (size_t i = 0; i < SK_ARRAY_COUNT(gTests); ++i) { in test_LIT()
75 const auto match = LIT<'X'>::Match(gTests[i].fInput); in test_LIT()
76 REPORTER_ASSERT(r, match == gTests[i].fMatch); in test_LIT()
77 REPORTER_ASSERT(r, match.fNext == (match ? gTests[i].fInput + 1 : nullptr)); in test_LIT()
92 } gTests[] = { in test_Alpha() local
109 for (size_t i = 0; i < SK_ARRAY_COUNT(gTests); ++i) { in test_Alpha()
110 const auto match = Alpha::Match(gTests[i].fInput); in test_Alpha()
111 REPORTER_ASSERT(r, match == gTests[i].fMatch); in test_Alpha()
112 REPORTER_ASSERT(r, match.fNext == (match ? gTests[i].fInput + 1 : nullptr)); in test_Alpha()
114 REPORTER_ASSERT(r, *match == gTests[i].fMatchValue); in test_Alpha()
124 } gTests[] = { in test_Digit() local
135 for (size_t i = 0; i < SK_ARRAY_COUNT(gTests); ++i) { in test_Digit()
136 const auto match = Digit::Match(gTests[i].fInput); in test_Digit()
137 REPORTER_ASSERT(r, match == gTests[i].fMatch); in test_Digit()
138 REPORTER_ASSERT(r, match.fNext == (match ? gTests[i].fInput + 1 : nullptr)); in test_Digit()
140 REPORTER_ASSERT(r, *match == gTests[i].fMatchValue); in test_Digit()
149 } gTests[] = { in test_Opt() local
157 for (size_t i = 0; i < SK_ARRAY_COUNT(gTests); ++i) { in test_Opt()
158 const auto m = Opt<LIT<'f', 'o', 'o'>>::Match(gTests[i].fInput); in test_Opt()
160 REPORTER_ASSERT(r, m->fValue.isValid() == gTests[i].fMatch); in test_Opt()
220 } gTests[] = { in test_AnySome() local
228 for (size_t i = 0; i < SK_ARRAY_COUNT(gTests); ++i) { in test_AnySome()
229 const auto matchAny = Any<LIT<'f', 'o', 'o'>>::Match(gTests[i].fInput); in test_AnySome()
231 REPORTER_ASSERT(r, matchAny->fValues.count() == gTests[i].fCount); in test_AnySome()
233 const auto matchSome = Some<LIT<'f', 'o', 'o'>>::Match(gTests[i].fInput); in test_AnySome()
234 REPORTER_ASSERT(r, matchSome == (gTests[i].fCount > 0)); in test_AnySome()
236 matchSome->get<1>().fValues.count() == gTests[i].fCount - 1); in test_AnySome()