Example #1
0
        public void TestTrivialParsing()
        {
            var parser = new _241("+aa");

            parser.Parse();
            parser = new _241("-aa");
            parser.Parse();
        }
Example #2
0
        public void TestFailInvalidInput()
        {
            var parser = new _241("++a");

            try
            {
                parser.Parse();
                Assert.Fail();
                Console.WriteLine("try");
            }
            catch (InvalidSyntaxException)
            {
                Console.WriteLine("Catch");
                return;
            }
        }
Example #3
0
        public void TestCombinedParsing()
        {
            var parser = new _241("+a-aa");

            parser.Parse();
        }