You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Not sure if that is intended, but the test testFullyQualifiedTemplateRef2 in TestTemplateNames.java prints an error to the console, even though it succeeds. The message is:
context [/group/c] 1:1 passed 0 arg(s) to template /a with 1 declared arg(s)
which is clear given that the /a template expects a parameter, which is not specfied:
@TestpublicvoidtestFullyQualifiedTemplateRef2() throwsException {
// /randomdir/a and /randomdir/group.stg with b and c templatesStringdir = getRandomDir();
writeFile(dir, "a.st", "a(x) ::= << </group/b()> >>\n");
StringgroupFile =
"b() ::= \"bar\"\n"+
"c() ::= \"</a()>\"\n";
writeFile(dir, "group.stg", groupFile);
STGroupgroup = newSTGroupDir(dir);
STst1 = group.getInstanceOf("/a");
STst2 = group.getInstanceOf("/group/c"); // invokes /aStringexpected = " bar bar ";
Stringresult = st1.render()+st2.render();
assertEquals(expected, result);
}
So I wonder if that is just an oversight and nobody ever cared for it or if that is used in some way outside of this test?
The text was updated successfully, but these errors were encountered:
mike-lischke
changed the title
Successful tests prints error
Successful test prints error
Jan 1, 2024
Not sure if that is intended, but the test
testFullyQualifiedTemplateRef2
inTestTemplateNames.java
prints an error to the console, even though it succeeds. The message is:which is clear given that the
/a
template expects a parameter, which is not specfied:So I wonder if that is just an oversight and nobody ever cared for it or if that is used in some way outside of this test?
The text was updated successfully, but these errors were encountered: