-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathThreeSumTest.java
More file actions
37 lines (31 loc) · 799 Bytes
/
ThreeSumTest.java
File metadata and controls
37 lines (31 loc) · 799 Bytes
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
import com.sun.javaws.IconUtil;
import org.junit.Test;
import java.util.List;
public class ThreeSumTest {
ThreeSum solver = new ThreeSum();
@Test
public void test1() {
int[] nums = {-1,0,1,2,-1,-4};
List<List<Integer>> res = solver.threeSum(nums);
for(List<Integer> t: res){
System.out.println(t);
}
//
}
@Test
public void test2() {
int[] nums = {0,1,1};
List<List<Integer>> res = solver.threeSum(nums);
for(List<Integer> t: res){
System.out.println(t);
}
}
@Test
public void test3() {
int[] nums = {0,0,0};
List<List<Integer>> res = solver.threeSum(nums);
for(List<Integer> t: res){
System.out.println(t);
}
}
}