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

Commit 02c6a76

Browse files
add test for 97
1 parent e5f7c6d commit 02c6a76

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
package com.fishercoder;
2+
3+
import com.fishercoder.solutions._97;
4+
import org.junit.BeforeClass;
5+
import org.junit.Test;
6+
7+
import static org.junit.Assert.assertEquals;
8+
9+
public class _97Test {
10+
private static _97.Solution1 solution1;
11+
12+
@BeforeClass
13+
public static void setup() {
14+
solution1 = new _97.Solution1();
15+
}
16+
17+
@Test
18+
public void test1() {
19+
assertEquals(true, solution1.isInterleave("aabcc", "dbbca", "aadbbcbcac"));
20+
}
21+
22+
@Test
23+
public void test2() {
24+
assertEquals(false, solution1.isInterleave("aabcc", "dbbca", "aadbbbaccc"));
25+
}
26+
27+
}

0 commit comments

Comments
 (0)