-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathTest0125.java
More file actions
28 lines (22 loc) · 714 Bytes
/
Copy pathTest0125.java
File metadata and controls
28 lines (22 loc) · 714 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
package leetcode;
import org.junit.jupiter.api.DisplayName;
import org.junit.jupiter.api.Test;
import static org.junit.jupiter.api.Assertions.assertFalse;
import static org.junit.jupiter.api.Assertions.assertTrue;
/**
* @author xiangdotzhaoAtwoqutechcommacom
* @date 2019/12/14
*/
class Test0125 {
private final Solution0125 solution = new Solution0125();
@Test
@DisplayName("125 Valid Palindrome")
void isPalindrome() {
String input = "A man, a plan, a canal: Panama";
assertTrue(solution.isPalindrome(input));
input = "race a car";
assertFalse(solution.isPalindrome(input));
input = "0P";
assertFalse(solution.isPalindrome(input));
}
}