public void testDPLLSucceedsWithAandNotA() { Sentence sentence = parser.parse("A & ~A"); bool satisfiable = dpll.dpllSatisfiable(sentence); Assert.AreEqual(false, satisfiable); }
public void testDPLLReturnsTrueWhenAllClausesTrueInModel() { Model model = new Model(); model = model.extend(new Symbol("A"), true).extend(new Symbol("B"), true); Sentence sentence = (Sentence)parser.parse("((A AND B) AND (A OR B))"); bool satisfiable = dpll.dpllSatisfiable(sentence, model); Assert.AreEqual(true, satisfiable); }