File tree Expand file tree Collapse file tree 1 file changed +0
-12
lines changed
src/test/java/com/thealgorithms/datastructures/heaps Expand file tree Collapse file tree 1 file changed +0
-12
lines changed Original file line number Diff line number Diff line change 99
1010public class MergeKSortedArraysTest {
1111
12- /**
13- * Parameterized test for merging multiple sorted arrays.
14- * Each test case provides input arrays and the expected merged output.
15- *
16- * @param arrays the input 2D array of sorted arrays
17- * @param expected the expected merged sorted array
18- */
1912 @ ParameterizedTest
2013 @ MethodSource ("provideTestCases" )
2114 public void testMergeKArrays (int [][] arrays , int [] expected ) {
2215 assertArrayEquals (expected , MergeKSortedArrays .mergeKArrays (arrays ));
2316 }
2417
25- /**
26- * Provides various test cases including edge cases for merging sorted arrays.
27- *
28- * @return a stream of test arguments containing input arrays and expected outputs
29- */
3018 private static Stream <Arguments > provideTestCases () {
3119 return Stream .of (
3220 // Basic test case with multiple arrays
You can’t perform that action at this time.
0 commit comments