예제 #1
0
        public void Test2()
        {
            var grammar         = Grammar.LoadFromFile(@"/home/pacman29/Рабочий стол/cc-lab1/TestCCLab2/testGrammars/useless2.json");
            var expectedGrammar = Grammar.LoadFromFile(@"/home/pacman29/Рабочий стол/cc-lab1/TestCCLab2/testExpectedGrammars/useless2.json");

            LanguageUtils.RemoveUselessSymbols(grammar);
            _testOutputHelper.WriteLine("Useless test:");
            _testOutputHelper.WriteLine(grammar.ToString());
            Assert.Equal(expectedGrammar, grammar);
        }