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

CompileNumericPrimitiveWithError() private method

private CompileNumericPrimitiveWithError ( ) : void
return void
        public void CompileNumericPrimitiveWithError()
        {
            Parser parser = new Parser("<primitive: 60 error:ec>");
            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(1, ops.Count);
            Assert.AreEqual("PrimitiveError 60 ec", ops[0]);
        }
ParserTests