Exemple #1
0
        public void TestBitwiseMax_m999_m1000()
        {
            var t = new Twiddle();

            int a = -999;
            int b = -1000;
            int expected = Math.Max(a, b);
            int actual = t.BitwiseMax(a, b);

            Assert.AreEqual(expected, actual);
        }
Exemple #2
0
        public void TestBitwiseMax_2_1()
        {
            var t = new Twiddle();

            int a = 2;
            int b = 1;
            int expected = Math.Max(a, b);
            int actual = t.BitwiseMax(a, b);

            Assert.AreEqual(expected, actual);
        }
Exemple #3
0
        public void TestBitwiseMax_Maxval_0()
        {
            var t = new Twiddle();

            int a = int.MaxValue;
            int b = 0;
            int expected = Math.Max(a, b);
            int actual = t.BitwiseMax(a, b);

            Assert.AreEqual(expected, actual);
        }