forked from fishercoder1534/Leetcode
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path_454Test.java
46 lines (38 loc) · 985 Bytes
/
_454Test.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
package com.fishercoder;
import com.fishercoder.solutions._454;
import org.junit.Before;
import org.junit.BeforeClass;
import org.junit.Test;
import static junit.framework.Assert.assertEquals;
public class _454Test {
private static _454 test;
private static int expected;
private static int actual;
private static int[] A;
private static int[] B;
private static int[] C;
private static int[] D;
@BeforeClass
public static void setup(){
test = new _454();
}
@Before
public void setupForEachTest(){
expected = 0;
actual = 0;
A = new int[1000];
B = new int[1000];
C = new int[1000];
D = new int[1000];
}
@Test
public void test1(){
A = new int[]{1,2};
B = new int[]{-2,-1};
C = new int[]{-1,2};
D = new int[]{0,2};
expected = 2;
actual = test.fourSumCount(A, B, C, D);
assertEquals(expected, actual);
}
}