Antlr4.Test.StringTemplate.TestCompiler.TestSuperIncludeWithArgs C# (CSharp) Method

TestSuperIncludeWithArgs() private method

private TestSuperIncludeWithArgs ( ) : void
return void
        public void TestSuperIncludeWithArgs()
        {
            string template = "<super.foo(a,{b})>";
            CompiledTemplate code = new TemplateCompiler(new TemplateGroup()).Compile(template);
            string asmExpected =
                "load_attr 0, new 1 0, super_new 2 2, write";
            string asmResult = code.GetInstructions();
            Assert.AreEqual(asmExpected, asmResult);
            string stringsExpected = "[a, _sub1, foo]";
            string stringsResult = code.strings.ToListString();
            Assert.AreEqual(stringsExpected, stringsResult);
        }