Exemple #1
0
        public void StringShiftTest_1()
        {
            var solution = new _1427_PerformStringShifts();
            var result   = solution.StringShift("abc", new int[][] { new int[] { 0, 1 }, new int[] { 1, 2 } });

            Assert.AreEqual("cab", result);
        }
Exemple #2
0
        public void StringShiftTest_2()
        {
            var solution = new _1427_PerformStringShifts();
            var result   = solution.StringShift("abcdefg", new int[][] {
                new int[] { 1, 1 },
                new int[] { 1, 1 },
                new int[] { 0, 2 },
                new int[] { 1, 3 }
            });

            Assert.AreEqual("efgabcd", result);
        }