public void InfiniteNumberTest3() { //Ulong Maxvalue = 18446744073709551615 // 1000000000000000000 // 999999999999999999 InfiniteNumber n1 = new InfiniteNumber(); n1.O_Add(999999999999999999); n1.O_Add(2); Assert.AreEqual(n1.ToString(), "1000000000000000001"); }
public void InfiniteNumberTest4() { //Ulong Maxvalue = 18446744073709551615 // 1000000000000000000 // 999999999999999999 InfiniteNumber n1 = new InfiniteNumber(); n1.O_Add(999999999999999999); n1.O_Add(1); Console.WriteLine(n1); Assert.AreEqual(n1.ToString(), "1000000000000000000"); }
public void InfiniteNumberTest6() { InfiniteNumber n1 = new InfiniteNumber(); n1.O_Add(9); Assert.AreEqual(n1.ToString(), "9"); }