Lines Matching refs:REPORTER_ASSERT
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()
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()
79 REPORTER_ASSERT(r, !(LIT<'F', 'o', 'o'>::Match(""))); in test_LIT()
80 REPORTER_ASSERT(r, !(LIT<'F', 'o', 'o'>::Match("Fo"))); in test_LIT()
81 REPORTER_ASSERT(r, !(LIT<'F', 'o', 'o'>::Match("FoO"))); in test_LIT()
82 REPORTER_ASSERT(r, (LIT<'F', 'o', 'o'>::Match("Foo"))); in test_LIT()
83 REPORTER_ASSERT(r, (LIT<'F', 'o', 'o'>::Match("Foobar"))); in test_LIT()
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()
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()
158 REPORTER_ASSERT(r, m); in test_Opt()
159 REPORTER_ASSERT(r, m->fValue.isValid() == gTests[i].fMatch); in test_Opt()
164 REPORTER_ASSERT(r, (Seq<LIT<'X'>, EOS>::Match("X"))); in test_Seq()
165 REPORTER_ASSERT(r, !(Seq<LIT<'X'>, EOS>::Match("x"))); in test_Seq()
166 REPORTER_ASSERT(r, !(Seq<LIT<'X'>, EOS>::Match("xX"))); in test_Seq()
167 REPORTER_ASSERT(r, !(Seq<LIT<'X'>, EOS>::Match("XX"))); in test_Seq()
168 REPORTER_ASSERT(r, (Seq<LIT<'X'>, Seq<LIT<'X'>, EOS>>::Match("XX"))); in test_Seq()
169 REPORTER_ASSERT(r, (Seq<LIT<'X'>, Seq<LIT<'X'>, EOS>>::Match("XX"))); in test_Seq()
171 REPORTER_ASSERT(r, !(Seq<LIT<'F', 'o', 'o'>, EOS>::Match("FooBar"))); in test_Seq()
172 REPORTER_ASSERT(r, (Seq<LIT<'F', 'o', 'o'>, EOS>::Match("Foo"))); in test_Seq()
176 REPORTER_ASSERT(r, m); in test_Seq()
177 REPORTER_ASSERT(r, m->get<1>() == 5); in test_Seq()
181 REPORTER_ASSERT(r, m); in test_Seq()
182 REPORTER_ASSERT(r, m->get<0>() == 4); in test_Seq()
183 REPORTER_ASSERT(r, m->get<1>() == 2); in test_Seq()
188 REPORTER_ASSERT(r, !(Choice<Digit,Alpha>::Match(""))); in test_Choice()
189 REPORTER_ASSERT(r, !(Choice<Digit,Alpha>::Match("\t"))); in test_Choice()
190 REPORTER_ASSERT(r, !(Choice<Digit,Alpha>::Match(" "))); in test_Choice()
191 REPORTER_ASSERT(r, (Choice<Digit,Alpha>::Match("a"))); in test_Choice()
192 REPORTER_ASSERT(r, (Choice<Digit,Alpha>::Match("3"))); in test_Choice()
193 REPORTER_ASSERT(r, (Choice<Digit,Alpha>::Match("a "))); in test_Choice()
194 REPORTER_ASSERT(r, (Choice<Digit,Alpha>::Match("3 "))); in test_Choice()
195 REPORTER_ASSERT(r, !(Choice<Digit,Alpha>::Match(" a "))); in test_Choice()
196 REPORTER_ASSERT(r, !(Choice<Digit,Alpha>::Match(" 3 "))); in test_Choice()
200 REPORTER_ASSERT(r, m); in test_Choice()
201 REPORTER_ASSERT(r, m->v1.isValid()); in test_Choice()
202 REPORTER_ASSERT(r, !m->v2.isValid()); in test_Choice()
203 REPORTER_ASSERT(r, *m->v1.get() == 'x'); in test_Choice()
208 REPORTER_ASSERT(r, m); in test_Choice()
209 REPORTER_ASSERT(r, !m->v1.isValid()); in test_Choice()
210 REPORTER_ASSERT(r, m->v2.isValid()); in test_Choice()
211 REPORTER_ASSERT(r, *m->v2.get() == 7); in test_Choice()
229 REPORTER_ASSERT(r, matchAny); in test_AnySome()
230 REPORTER_ASSERT(r, matchAny->fValues.count() == gTests[i].fCount); in test_AnySome()
233 REPORTER_ASSERT(r, matchSome == (gTests[i].fCount > 0)); in test_AnySome()
234 REPORTER_ASSERT(r, !matchSome || in test_AnySome()
240 REPORTER_ASSERT(r, m); in test_AnySome()
241 REPORTER_ASSERT(r, m->fValues.count() == 10); in test_AnySome()
243 REPORTER_ASSERT(r, m->fValues[i] == i); in test_AnySome()
258 REPORTER_ASSERT(r, !P0::Match("")); in test_Complex()
259 REPORTER_ASSERT(r, !P0::Match(",")); in test_Complex()
260 REPORTER_ASSERT(r, !P0::Match("1,")); in test_Complex()
261 REPORTER_ASSERT(r, !P0::Match(",1")); in test_Complex()
262 REPORTER_ASSERT(r, P0::Match("1")); in test_Complex()
263 REPORTER_ASSERT(r, P0::Match("1,2")); in test_Complex()
264 REPORTER_ASSERT(r, !P0::Match("1,2 ")); in test_Complex()
265 REPORTER_ASSERT(r, P0::Match("123,456")); in test_Complex()
281 REPORTER_ASSERT(r, !P1::Match("")); in test_Complex()
282 REPORTER_ASSERT(r, !P1::Match("FooBar")); in test_Complex()
283 REPORTER_ASSERT(r, !P1::Match("FooBaz")); in test_Complex()
284 REPORTER_ASSERT(r, P1::Match("FooBarBaz")); in test_Complex()
285 REPORTER_ASSERT(r, P1::Match("foobarbaz")); in test_Complex()
286 REPORTER_ASSERT(r, P1::Match(" FooBarbaz ")); in test_Complex()
287 REPORTER_ASSERT(r, P1::Match(" FooBarbarbarBaz ")); in test_Complex()