예제 #1
0
 public void Test8()
 {
     int[] array = { 1, 0, 1, 1, 1 };
     Assert.Equal(0, Coding006.MinForBinary(array));
     Assert.Equal(0, Coding006.MinForSimple(array));
 }
예제 #2
0
 public void Test6()
 {
     int[] array = { 2, 1 };
     Assert.Equal(1, Coding006.MinForBinary(array));
     Assert.Equal(1, Coding006.MinForSimple(array));
 }
예제 #3
0
 public void Test7()
 {
     int[] array = { 3, 4, 5, 2, 2, 2 };
     Assert.Equal(2, Coding006.MinForBinary(array));
     Assert.Equal(2, Coding006.MinForSimple(array));
 }
예제 #4
0
 public void Test3()
 {
     int[] array = { 1, 2, 3, 4, 5 };
     Assert.Equal(1, Coding006.MinForBinary(array));
     Assert.Equal(1, Coding006.MinForSimple(array));
 }