Пример #1
0
        public void PlusOneTest_1()
        {
            var test  = new P0066_PlusOne();
            var input = new int[] { 1, 2, 3 };

            var output = test.PlusOne(input);

            Assert.AreEqual(new[] { 1, 2, 4 }, output);
        }
Пример #2
0
        public void PlusOneTest_4()
        {
            var test  = new P0066_PlusOne();
            var input = new int[] { 9, 9, 9 };

            var output = test.PlusOne(input);

            Assert.AreEqual(new[] { 1, 0, 0, 0 }, output);
        }