Search in sources :

Example 1 with CompileProverImpl

use of suite.lp.compile.impl.CompileProverImpl in project suite by stupidsing.

the class ProverFactoryTest method test.

private void test(String query, boolean result) {
    for (ProverFactory pf : new ProverFactory[] { // 
    new CompileProverImpl(), new SewingProverImpl(Suite.newRuleSet(List.of("auto.sl"))) }) {
        Prove_ p = pf.prover(Suite.parse(query));
        assertEquals(result, p.test(new ProverConfig()));
    }
}
Also used : ProverConfig(suite.lp.Configuration.ProverConfig) CompileProverImpl(suite.lp.compile.impl.CompileProverImpl) Prove_(suite.lp.doer.ProverFactory.Prove_) SewingProverImpl(suite.lp.sewing.impl.SewingProverImpl)

Aggregations

ProverConfig (suite.lp.Configuration.ProverConfig)1 CompileProverImpl (suite.lp.compile.impl.CompileProverImpl)1 Prove_ (suite.lp.doer.ProverFactory.Prove_)1 SewingProverImpl (suite.lp.sewing.impl.SewingProverImpl)1