Beispiel #1
0
        public void Test3()
        {
            int expected = 0;

            int[] input  = new int[] { 5 };
            var   actual = Class21.CyclicallySortedMin(input);

            Assert.Equal(expected, actual);
        }
Beispiel #2
0
        public void Test4()
        {
            int expected = -1;

            int[] input  = null;
            var   actual = Class21.CyclicallySortedMin(input);

            Assert.Equal(expected, actual);
        }
Beispiel #3
0
        public void Test1()
        {
            int expected = 2;

            int[] input  = new int[] { 4, 5, 1, 2, 3 };
            var   actual = Class21.CyclicallySortedMin(input);

            Assert.Equal(expected, actual);
        }