Ejemplo n.º 1
0
            //----< methods that used to initiate the semiexpression tester>-----------
            public bool testSemi(string path)
            {
                if (!test.open(path))
                {
                    Console.Write("\n  Can't open file {0}", path);
                    return(false);
                }
                int setcount = 0;

                while (test.getSemi())
                {
                    setcount++;
                    Console.Write("\n ++ Set {0}", setcount);
                    test.display();
                }
                test.close();
                return(true);
            }
Ejemplo n.º 2
0
            static bool testfile(string path)
            {
                SemiExpression test = new SemiExpression();

                if (!test.open(path))
                {
                    Console.Write("\n  Can't open file {0}", path);
                    return(false);
                }
                int setcount = 0;

                while (test.getSemi())
                {
                    setcount++;
                    Console.Write("\n**Set {0}", setcount);
                    test.display();
                }
                test.close();
                return(true);
            }