use of suite.lp.doer.GeneralizerFactory.Generalize_ in project suite by stupidsing.
the class GeneralizerFactoryTest method test.
private void test(String pattern, String match) {
for (GeneralizerFactory gf : new GeneralizerFactory[] { new CompileGeneralizerImpl(), new SewingGeneralizerImpl() }) {
Generalize_ p = gf.generalizer(Suite.parse(pattern));
assertTrue(Binder.bind(p.apply(gf.mapper().env()), Suite.parse(match), new Trail()));
}
}
Aggregations