public void TestBitwiseMin_m999_m1000() { var t = new Twiddle(); int a = -999; int b = -1000; int expected = Math.Min(a, b); int actual = t.BitwiseMin1(a, b); Assert.AreEqual(expected, actual); }
public void TestBitwiseMin_5_10() { var t = new Twiddle(); int a = 5; int b = 10; int expected = Math.Min(a, b); int actual = t.BitwiseMin1(a, b); Assert.AreEqual(expected, actual); }
public void TestBitwiseMin_minval_0() { var t = new Twiddle(); int a = int.MinValue; int b = 0; int expected = Math.Min(a, b); int actual = t.BitwiseMin1(a, b); Assert.AreEqual(expected, actual); }