Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 8bb1f08

Browse files
add test for 95
1 parent 7205330 commit 8bb1f08

File tree

2 files changed

+23
-1
lines changed

2 files changed

+23
-1
lines changed

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,8 @@
1717
\ / / / \ \
1818
3 2 1 1 3 2
1919
/ / \ \
20-
2 1 2 3*/
20+
2 1 2 3
21+
*/
2122
public class _95 {
2223

2324
public static class Solution1 {
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
package com.fishercoder;
2+
3+
import com.fishercoder.common.utils.TreeUtils;
4+
import com.fishercoder.solutions._95;
5+
import org.junit.BeforeClass;
6+
import org.junit.Test;
7+
8+
public class _95Test {
9+
private static _95.Solution1 solution1;
10+
11+
@BeforeClass
12+
public static void setup() {
13+
solution1 = new _95.Solution1();
14+
}
15+
16+
@Test
17+
public void test1() {
18+
solution1.generateTrees(3).forEach(TreeUtils::printBinaryTree);
19+
}
20+
21+
}

0 commit comments

Comments
 (0)