public void ThreeTest() { var four = SparseByWeight.Dec(Five); var three = SparseByWeight.Dec(four); Assert.AreEqual("2,1", DumpNat(Three)); Assert.AreEqual("2,1", DumpNat(three)); }
public void SeventeenTest() { var seventeen = SparseByWeight.Add(Fifteen, Two); Assert.AreEqual("16,1", DumpNat(seventeen)); }
public void FourTest() { var four = SparseByWeight.Dec(Five); Assert.AreEqual("4", DumpNat(four)); }
public void SixteenTest() { var sixteen = SparseByWeight.Inc(Fifteen); Assert.AreEqual("16", DumpNat(sixteen)); }