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

CompileBlockInBrackets() private method

private CompileBlockInBrackets ( ) : void
return void
        public void CompileBlockInBrackets()
        {
            var result = this.compiler.CompileBlock("[a := 1]");
            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]);
        }