Skip to content

Commit d8c4ff5

Browse files
add a test for 1171
1 parent 73c20ac commit d8c4ff5

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/test/java/com/fishercoder/_1171Test.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,4 +49,10 @@ public void test6() {
4949
solution1.removeZeroSumSublists(LinkedListUtils.contructLinkedList(new int[]{2, 0})));
5050
}
5151

52+
@Test
53+
public void test7() {
54+
assertEquals(LinkedListUtils.contructLinkedList(new int[]{1, 5, 1}),
55+
solution1.removeZeroSumSublists(LinkedListUtils.contructLinkedList(new int[]{1, 3, 2, -3, -2, 5, 100, -100, 1})));
56+
}
57+
5258
}

0 commit comments

Comments
 (0)