-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathTest0454.java
38 lines (31 loc) · 875 Bytes
/
Test0454.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
package leetcode;
import org.junit.jupiter.api.DisplayName;
import org.junit.jupiter.api.Test;
import static org.junit.jupiter.api.Assertions.assertEquals;
/**
* @author xiangdotzhaoAtwoqutechcommacom
* @date 2019/12/15
*/
class Test0454 {
private final Solution0454 solution = new Solution0454();
@Test
@DisplayName("454 4Sum II")
void fourSumCount() {
int expected = 2;
int[] a = {1, 2};
int[] b = {-2, -1};
int[] c = {-1, 2};
int[] d = {0, 2};
assertEquals(expected, solution.fourSumCount(a, b, c, d));
}
@Test
@DisplayName("454 4Sum II")
void fourSumCountAnother() {
int expected = 2;
int[] a = {1, 2};
int[] b = {-2, -1};
int[] c = {-1, 2};
int[] d = {0, 2};
assertEquals(expected, solution.fourSumCountAnother(a, b, c, d));
}
}