8000 add a test · devdcores/Leetcode@4b6312f · GitHub
[go: up one dir, main page]

Skip to content

Commit 4b6312f

Browse files
add a test
1 parent 9aab5e0 commit 4b6312f

File tree

3 files changed

+6
-9
lines changed

3 files changed

+6
-9
lines changed

src/main/java/com/fishercoder/common/utils/ArrayUtils.java

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,6 @@
33
import java.util.ArrayList;
44
import java.util.List;
55

6-
/**
7-
* Created by stevesun on 9/12/17.
8-
*/
96
public class ArrayUtils {
107
public static List<List<Integer>> buildList(int[][] nums) {
118
List<List<Integer>> result = new ArrayList<>(nums.length);

src/main/java/com/fishercoder/common/utils/LinkedListUtils.java

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,6 @@
22

33
import com.fishercoder.common.classes.ListNode;
44

5-
/**
6-
* Created by stevesun on 8/12/17.
7-
*/
85
public class LinkedListUtils {
96

107
public static ListNode contructLinkedList(int[] nums) {

src/test/java/com/fishercoder/_473Test.java

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,6 @@
66

77
import static org.junit.Assert.assertEquals;
88

9-
/**
10-
* Created by stevesun on 5/30/17.
11-
*/
129
public class _473Test {
1310
private static _473.Solution1 solution1;
1411
private static int[] nums;
@@ -23,4 +20,10 @@ public void test1() {
2320
nums = new int[]{1, 1, 2, 2, 2};
2421
assertEquals(true, solution1.makesquare(nums));
2522
}
23+
24+
@Test
25+
public void test2() {
26+
nums = new int[]{3, 3, 3, 3, 4};
27+
assertEquals(false, solution1.makesquare(nums));
28+
}
2629
}

0 commit comments

Comments
 (0)
0