示例#1
0
        public void TestZero()
        {
            var nums = new long[] { 34, 0 };

            Assert.AreEqual(34, LongExtensions.BinaryEuclideanNOD(nums[0], nums[1]));
        }
示例#2
0
        public void TestMethod5()
        {
            var nums = new long[] { 34, 25 };

            Assert.AreEqual(1, LongExtensions.BinaryEuclideanNOD(nums[0], nums[1]));
        }
示例#3
0
        public void TestTwoNums2()
        {
            var nums = new long[] { 34, 17 };

            Assert.AreEqual(17, LongExtensions.BinaryEuclideanNOD(nums[0], nums[1]));
        }