use of com.squarespace.template.Instructions.EofInst in project template-compiler by Squarespace.
the class InstructionEqualityTest method testEofEquals.
@Test
public void testEofEquals() throws CodeSyntaxException {
CodeMaker mk = maker();
EofInst e1 = mk.eof();
assertEquals(e1, mk.eof());
assertNotEquals(e1, mk.space());
assertNotEquals(e1, mk.end());
}
use of com.squarespace.template.Instructions.EofInst in project template-compiler by Squarespace.
the class CompilerTest method testValidate.
@Test
public void testValidate() throws CodeException {
CodeList code = new CodeList();
code.accept(new VariableInst("@"));
code.accept(new EofInst());
ValidatedTemplate validated = COMPILER.validate("{@}");
assertEquals(validated.code().getInstructions(), code.getInstructions());
}
Aggregations