Home | History | Annotate | Download | only in tests

Lines Matching refs:LIT

74         const auto match = LIT<'X'>::Match(gTests[i].fInput);
79 REPORTER_ASSERT(r, !(LIT<'F', 'o', 'o'>::Match("")));
80 REPORTER_ASSERT(r, !(LIT<'F', 'o', 'o'>::Match("Fo")));
81 REPORTER_ASSERT(r, !(LIT<'F', 'o', 'o'>::Match("FoO")));
82 REPORTER_ASSERT(r, (LIT<'F', 'o', 'o'>::Match("Foo")));
83 REPORTER_ASSERT(r, (LIT<'F', 'o', 'o'>::Match("Foobar")));
157 const auto m = Opt<LIT<'f', 'o', 'o'>>::Match(gTests[i].fInput);
164 REPORTER_ASSERT(r, (Seq<LIT<'X'>, EOS>::Match("X")));
165 REPORTER_ASSERT(r, !(Seq<LIT<'X'>, EOS>::Match("x")));
166 REPORTER_ASSERT(r, !(Seq<LIT<'X'>, EOS>::Match("xX")));
167 REPORTER_ASSERT(r, !(Seq<LIT<'X'>, EOS>::Match("XX")));
168 REPORTER_ASSERT(r, (Seq<LIT<'X'>, Seq<LIT<'X'>, EOS>>::Match("XX")));
169 REPORTER_ASSERT(r, (Seq<LIT<'X'>, Seq<LIT<'X'>, EOS>>::Match("XX")));
171 REPORTER_ASSERT(r, !(Seq<LIT<'F', 'o', 'o'>, EOS>::Match("FooBar")));
172 REPORTER_ASSERT(r, (Seq<LIT<'F', 'o', 'o'>, EOS>::Match("Foo")));
175 const auto m = Seq<LIT<'x'>, Digit>::Match("x5");
228 const auto matchAny = Any<LIT<'f', 'o', 'o'>>::Match(gTests[i].fInput);
232 const auto matchSome = Some<LIT<'f', 'o', 'o'>>::Match(gTests[i].fInput);
254 LIT<','>,
270 Any<LIT<' '>>,
271 Choice<LIT<'F'>, LIT<'f'>>,
272 LIT<'o', 'o'>,
274 Choice<LIT<'B'>, LIT<'b'>>,
275 LIT<'a', 'r'>>>,
276 Choice<LIT<'B'>, LIT<'b'>>,
277 LIT<'a', 'z'>,
278 Any<LIT<' '>>,