private testSubstWithExistentialQuantifierAndSngleVariable ( ) : void | ||
return | void |
public void testSubstWithExistentialQuantifierAndSngleVariable()
{
Sentence beforeSubst = parser.parse("EXISTS x King(x))");
Sentence expectedAfterSubst = parser.parse("King(John)");
Dictionary<Variable, Term> p = new Dictionary<Variable, Term>();
p.Add(new Variable("x"), new Constant("John"));
Sentence afterSubst = sv.subst(p, beforeSubst);
Assert.AreEqual(expectedAfterSubst, afterSubst);
Assert.AreEqual(parser.parse("EXISTS x King(x)"), beforeSubst);
}