public void Gcd5ZeroInArgumentsMustBeZeroOutput() { var euclidGcd = Euclidean.Euclidean.Gcd5(0, 0, 0, 0, 0); var steinGcd = Stein.Gcd5(0, 0, 0, 0, 0); Assert.AreEqual(euclidGcd, steinGcd); Assert.AreEqual(euclidGcd, (uint)0); }
public void Gcd5QuadsShouldBeEquivalent() { for (uint i = 1, j = 1; i < 32; j <<= 1, i++) { var euclidGcd = Euclidean.Euclidean.Gcd5(j, j / 2, j / 2, j / 2, j / 2); var steinGcd = Stein.Gcd5(j, j / 2, j / 2, j / 2, j / 2); Assert.AreEqual(euclidGcd, steinGcd); } }