@@ -13,8 +13,9 @@ void modifiedList() {
13
13
new Solution ()
14
14
.modifiedList (
15
15
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" ));
18
19
}
19
20
20
21
@ Test
@@ -23,8 +24,9 @@ void modifiedList2() {
23
24
new Solution ()
24
25
.modifiedList (
25
26
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" ));
28
30
}
29
31
30
32
@ Test
@@ -33,7 +35,8 @@ void modifiedList3() {
33
35
new Solution ()
34
36
.modifiedList (
35
37
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" ));
38
41
}
39
42
}
0 commit comments