Skip to content

Commit 24f6189

Browse files
add test for 22
1 parent d7bc9a1 commit 24f6189

File tree

2 files changed

+28
-2
lines changed

2 files changed

+28
-2
lines changed

src/main/java/com/fishercoder/solutions/_22.java

-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
package com.fishercoder.solutions;
22

3-
import com.fishercoder.common.utils.CommonUtils;
4-
53
import java.util.ArrayList;
64
import java.util.List;
75

+28
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
package com.fishercoder;
2+
3+
import com.fishercoder.common.utils.CommonUtils;
4+
import com.fishercoder.solutions._22;
5+
import org.junit.BeforeClass;
6+
import org.junit.Test;
7+
8+
public class _22Test {
9+
private static _22.Solution1 solution1;
10+
private static _22.Solution2 solution2;
11+
12+
@BeforeClass
13+
public static void setup() {
14+
solution1 = new _22.Solution1();
15+
solution2 = new _22.Solution2();
16+
}
17+
18+
@Test
19+
public void test1() {
20+
CommonUtils.printList(solution1.generateParenthesis(3));
21+
}
22+
23+
@Test
24+
public void test2() {
25+
CommonUtils.printList(solution2.generateParenthesis(3));
26+
}
27+
28+
}

0 commit comments

Comments
 (0)