Beispiel #1
0
        public void Problem283_Tests_1()
        {
            int[] arr = new int[] { 0, 1, 0, 3, 12 };
            Problem283.MoveZeroes(arr);

            int[] exp = new int[] { 1, 3, 12, 0, 0 };
            Assert.Equal(exp, arr);
        }
Beispiel #2
0
        public void Problem283_Tests_2()
        {
            int[] arr = new int[] { 0 };
            Problem283.MoveZeroes(arr);

            int[] exp = new int[] { 0 };
            Assert.Equal(exp, arr);
        }