Beispiel #1
0
        public void BinaryGCMTest()
        {
            int a      = 130;
            int b      = 105;
            int result = GCMs.BinaryGCM(a, b);

            Assert.AreEqual(5, result);
        }
Beispiel #2
0
        public void BinaryGCMTimeTest()
        {
            int       a      = 624;
            int       b      = 7564;
            Stopwatch time   = new Stopwatch();
            int       result = GCMs.BinaryGCMTime(out time, a, b);

            Assert.AreEqual(4, result);
        }
Beispiel #3
0
        public void GCMTest1()
        {
            int a      = 117;
            int b      = 39;
            int c      = 3;
            int result = GCMs.GCM(a, b, c);

            Assert.AreEqual(3, result);
        }