Skip to content

Commit

Permalink
test: isPalindrome 세번째 풀이 테스크 코드
Browse files Browse the repository at this point in the history
  • Loading branch information
rldnrl committed Dec 15, 2023
1 parent a407fa4 commit f8a23e2
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions test/leetcode/ValidPalindromeTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -35,4 +35,19 @@ public void validPalindrome2() {
String testString4 = new String("aa");
Assertions.assertTrue(isPalindrome2(testString4));
}

@Test
public void validPalindrome3() {
String testString1 = new String("A man, a plan, a canal: Panama");
Assertions.assertTrue(isPalindrome3(testString1));

String testString2 = new String("race a car");
Assertions.assertFalse(isPalindrome3(testString2));

String testString3 = new String(" ");
Assertions.assertTrue(isPalindrome3(testString3));

String testString4 = new String("aa");
Assertions.assertTrue(isPalindrome3(testString4));
}
}

0 comments on commit f8a23e2

Please sign in to comment.