Skip to content

Commit 13b7642

Browse files
add test for 23
1 parent cabf5ae commit 13b7642

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
package com.fishercoder;
2+
3+
import com.fishercoder.common.classes.ListNode;
4+
import com.fishercoder.common.utils.CommonUtils;
5+
import com.fishercoder.solutions._23;
6+
import org.junit.BeforeClass;
7+
import org.junit.Test;
8+
9+
public class _23Test {
10+
private static _23.Solution1 solution1;
11+
private static ListNode[] lists;
12+
13+
@BeforeClass
14+
public static void setup() {
15+
solution1 = new _23.Solution1();
16+
}
17+
18+
@Test
19+
public void test1() {
20+
lists = new ListNode[]{new ListNode(1), new ListNode(7), new ListNode(5)};
21+
CommonUtils.printList(solution1.mergeKLists(lists));
22+
}
23+
24+
}

0 commit comments

Comments
 (0)