use of suite.lp.sewing.impl.SewingExpressionImpl in project suite by stupidsing.
the class EvaluatorFactoryTest method test.
private void test(String pattern, int result) {
for (EvaluatorFactory ef : new EvaluatorFactory[] { //
new CompileExpressionImpl(new CompileClonerImpl()), new SewingExpressionImpl(new SewingClonerImpl()) }) {
Evaluate_ e = ef.evaluator(Suite.parse(pattern));
assertEquals(result, e.evaluate(Env.empty(0)));
}
}
Aggregations