Skip to content

Commit 847ddb5

Browse files
add test for 119
1 parent 63e9e85 commit 847ddb5

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._119;
4+
import org.junit.BeforeClass;
5+
import org.junit.Test;
6+
7+
import java.util.Arrays;
8+
9+
import static org.junit.Assert.assertEquals;
10+
11+
public class _119Test {
12+
private static _119.Solution1 solution1;
13+
private static _119.Solution2 solution2;
14+
15+
@BeforeClass
16+
public static void setup() {
17+
solution1 = new _119.Solution1();
18+
solution2 = new _119.Solution2();
19+
}
20+
21+
@Test
22+
public void test1() {
23+
assertEquals(Arrays.asList(1, 3, 3, 1), solution1.getRow(3));
24+
assertEquals(Arrays.asList(1, 3, 3, 1), solution2.getRow(3));
25+
}
26+
27+
}

0 commit comments

Comments
 (0)