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

CompileBlockInBrackets() private method

private CompileBlockInBrackets ( ) : void
return void
        public void CompileBlockInBrackets()
        {
            Parser parser = new Parser("[a := 1]");
            var result = parser.CompileBlock();
            Assert.IsNotNull(result);
            Assert.IsNotNull(result.ByteCodes);
            BlockDecompiler decompiler = new BlockDecompiler(result);
            var ops = decompiler.Decompile();
            Assert.IsNotNull(ops);
            Assert.AreEqual("GetBlock { GetConstant 1; SetGlobalVariable a }", ops[0]);
        }
ParserTests