TillNewLineExpression extends NativeExpression implements Matcher { @Override public String toString() { return "TillNewLine"; } private  TillNewLineExpression(); @Override void execute(Machine machine); @Override String toString(); static final TillNewLineExpression INSTANCE; }
@Test public void should_compile() { assertThat(expression.compile(new CompilationHandler())).containsOnly(expression); assertThat(expression.toString()).isEqualTo("TillNewLine"); }