Search in sources :

Example 1 with Generalize_

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()));
    }
}
Also used : CompileGeneralizerImpl(suite.lp.compile.impl.CompileGeneralizerImpl) Trail(suite.lp.Trail) Generalize_(suite.lp.doer.GeneralizerFactory.Generalize_) SewingGeneralizerImpl(suite.lp.sewing.impl.SewingGeneralizerImpl)

Aggregations

Trail (suite.lp.Trail)1 CompileGeneralizerImpl (suite.lp.compile.impl.CompileGeneralizerImpl)1 Generalize_ (suite.lp.doer.GeneralizerFactory.Generalize_)1 SewingGeneralizerImpl (suite.lp.sewing.impl.SewingGeneralizerImpl)1