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

TestAnonZipMap() private method

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