Example #1
0
        public void AnyCharTest()
        {
            CharParser test = Prims.AnyChar;

            Assert.IsTrue(test.Accepts('a'));
        }
Example #2
0
 public static void Test(CharParser test, Char success, Char failed)
 {
     Assert.IsTrue(test.Accepts(success));
     Assert.IsFalse(test.Accepts(failed));
 }