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