-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathSolutionTest.java
More file actions
35 lines (30 loc) · 816 Bytes
/
SolutionTest.java
File metadata and controls
35 lines (30 loc) · 816 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
29
30
31
32
33
34
35
package leetCode_5;
import org.junit.Test;
import others.PalindromeStringUtil;
import others.RandomStringUtil;
/**
* @author dimdark
* @date 2017-04-20
* @time 6:57 PM
*/
public class SolutionTest {
@Test
public void test(){
Solution solution = new Solution();
String s,ps;
for (int i=0; i<10; ++i){
s = PalindromeStringUtil.createPalindromeString();
System.out.println(s);
ps = solution.longestPalindrome(s);
System.out.println(ps);
}
}
@Test
public void testTwo(){
String s = "aaaaaaaaaaaaaaaaaabcaaaaaaaaaaaaaaaaa";
System.out.println(s);
SolutionTwo solution = new SolutionTwo();
String result = solution.longestPalindrome(s);
System.out.println(result);
}
}