Antlr4.Test.StringTemplate.TestCompiler.TestSuperIncludeWithArgs C# (CSharp) 메소드

TestSuperIncludeWithArgs() 개인적인 메소드

private TestSuperIncludeWithArgs ( ) : void
리턴 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);
        }