Skip to content

Commit 421a97a

Browse files
committed
Fixed test
1 parent ffb7406 commit 421a97a

File tree

1 file changed

+9
-6
lines changed
  • src/test/java/g3201_3300/s3217_delete_nodes_from_linked_list_present_in_array

1 file changed

+9
-6
lines changed

src/test/java/g3201_3300/s3217_delete_nodes_from_linked_list_present_in_array/SolutionTest.java

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,9 @@ void modifiedList() {
1313
new Solution()
1414
.modifiedList(
1515
new int[] {1, 2, 3},
16-
LinkedListUtils.contructLinkedList(new int[] {1, 2, 3, 4, 5})),
17-
equalTo(LinkedListUtils.contructLinkedList(new int[] {4, 5})));
16+
LinkedListUtils.contructLinkedList(new int[] {1, 2, 3, 4, 5}))
17+
.toString(),
18+
equalTo("4, 5"));
1819
}
1920

2021
@Test
@@ -23,8 +24,9 @@ void modifiedList2() {
2324
new Solution()
2425
.modifiedList(
2526
new int[] {1},
26-
LinkedListUtils.contructLinkedList(new int[] {1, 2, 1, 2, 1, 2})),
27-
equalTo(LinkedListUtils.contructLinkedList(new int[] {2, 2, 2})));
27+
LinkedListUtils.contructLinkedList(new int[] {1, 2, 1, 2, 1, 2}))
28+
.toString(),
29+
equalTo("2, 2, 2"));
2830
}
2931

3032
@Test
@@ -33,7 +35,8 @@ void modifiedList3() {
3335
new Solution()
3436
.modifiedList(
3537
new int[] {5},
36-
LinkedListUtils.contructLinkedList(new int[] {1, 2, 3, 4})),
37-
equalTo(LinkedListUtils.contructLinkedList(new int[] {1, 2, 3, 4})));
38+
LinkedListUtils.contructLinkedList(new int[] {1, 2, 3, 4}))
39+
.toString(),
40+
equalTo("1, 2, 3, 4"));
3841
}
3942
}

0 commit comments

Comments
 (0)