use of suite.lp.doer.ProverFactory in project suite by stupidsing.
the class SewingProverTest method testCut.
@Test
public void testCut() {
RuleSet rs = Suite.newRuleSet();
Suite.addRule(rs, "a :- b");
Suite.addRule(rs, "a");
Suite.addRule(rs, "b :- !, fail");
ProverFactory sp = new SewingProverImpl(rs);
ProverConfig pc = new ProverConfig(rs);
assertTrue(sp.prover(Suite.parse("a")).test(pc));
}
use of suite.lp.doer.ProverFactory in project suite by stupidsing.
the class SewingProverTest method testEnv.
@Test
public void testEnv() {
RuleSet rs = Suite.newRuleSet();
Suite.addRule(rs, "a :- b .a, b .b");
Suite.addRule(rs, "b 1");
ProverFactory sp = new SewingProverImpl(rs);
ProverConfig pc = new ProverConfig(rs);
assertTrue(sp.prover(Suite.parse("a")).test(pc));
}
Aggregations