public void RationalAllocate() { using (var a = HugeRational.Allocate(129, 193)) { Assert.AreEqual(1 + 128 / MpirSettings.BITS_PER_LIMB, a.NumeratorNumberOfLimbsAllocated()); Assert.AreEqual(0, a.NumeratorNumberOfLimbsUsed()); Assert.AreEqual(1 + 192 / MpirSettings.BITS_PER_LIMB, a.DenominatorNumberOfLimbsAllocated()); Assert.AreEqual(1, a.DenominatorNumberOfLimbsUsed()); Assert.AreEqual("0/1", a.ToString()); } }