Skip to content

Commit ce8f357

Browse files
add test for 5
1 parent fd336d9 commit ce8f357

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed
+22
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
package com.fishercoder;
2+
3+
import com.fishercoder.solutions._5;
4+
import org.junit.BeforeClass;
5+
import org.junit.Test;
6+
7+
import static org.junit.Assert.assertEquals;
8+
9+
public class _5Test {
10+
private static _5.Solution1 solution1;
11+
12+
@BeforeClass
13+
public static void setup() {
14+
solution1 = new _5.Solution1();
15+
}
16+
17+
@Test
18+
public void test1() {
19+
assertEquals("bab", solution1.longestPalindrome("babad"));
20+
}
21+
22+
}

0 commit comments

Comments
 (0)