Beispiel #1
0
        public void CloneLiteral()
        {
            var a  = new Integer(1);
            var a1 = a.Clone();
            var b  = new Logical(true);
            var b1 = b.Clone();

            Assert.IsTrue(_.Same(a, a1));
            Assert.AreNotSame(a, a1);
            Assert.IsTrue(_.Same(b, b1));
            Assert.AreNotSame(b, b1);
        }
Beispiel #2
0
 public Rational(Integer integer)
 {
     Numerator   = integer.Clone();
     Denominator = Natural.One;
 }