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