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 d7ebd56 commit afe81ab
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 @@ -20,4 +20,19 @@ public void validPalindrome() {
String testString4 = new String("aa");
Assertions.assertTrue(isPalindrome(testString4));
}

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

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

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

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

0 comments on commit afe81ab

Please sign in to comment.