Reference() public method

public Reference ( ) : AbstractTerm
return AbstractTerm
Example #1
0
        public void Bind()
        {
            ListTerm term = new ListTerm();
            ListTerm term2 = new ListTerm();

            term.Bind(term2);

            Assert.AreSame(term, term.Reference());
        }
Example #2
0
        public void Unify_ref_lis()
        {
            AbstractTerm term = new AbstractTerm();
            ListTerm con = new ListTerm();

            Assert.IsTrue(term.Unify(con));

            Assert.AreSame(term.Reference(), con.Reference());
            Assert.IsTrue(term.IsList);
            Assert.IsFalse(term.IsReference);
        }
Example #3
0
        public void Reference()
        {
            ListTerm term1 = new ListTerm();
            ListTerm term2 = new ListTerm();

            term1.Bind(term2);

            Assert.AreSame(term1, term1.Reference());
        }