예제 #1
0
        public void ReverseOnlyLetters_3()
        {
            var solution = new _0917_ReverseOnlyLetters();
            var result   = solution.ReverseOnlyLetters("Test1ng-Leet=code-Q!");

            Assert.AreEqual("Qedo1ct-eeLg=ntse-T!", result);
        }
예제 #2
0
        public void ReverseOnlyLetters_1()
        {
            var solution = new _0917_ReverseOnlyLetters();
            var result   = solution.ReverseOnlyLetters("ab-cd");

            Assert.AreEqual("dc-ba", result);
        }
예제 #3
0
        public void ReverseOnlyLetters_2()
        {
            var solution = new _0917_ReverseOnlyLetters();
            var result   = solution.ReverseOnlyLetters("a-bC-dEf-ghIj");

            Assert.AreEqual("j-Ih-gfE-dCba", result);
        }