AjTalk.Tests.Compiler.ParserTests.CompileSimpleArithmeticWithParenthesis C# (CSharp) Method

CompileSimpleArithmeticWithParenthesis() private method

private CompileSimpleArithmeticWithParenthesis ( ) : void
return void
        public void CompileSimpleArithmeticWithParenthesis()
        {
            Parser compiler = new Parser("1 * (2 + 3)");
            Block block = compiler.CompileBlock();
            Assert.IsNotNull(block);
            Assert.AreEqual(5, block.NoConstants);
            Assert.AreEqual(0, block.NoLocals);
            Assert.IsNotNull(block.ByteCodes);
            Assert.AreEqual(12, block.ByteCodes.Length);
            Assert.AreEqual(0, block.Arity);
        }
ParserTests