Skip to content

Commit 3eb9307

Browse files
committed
Fix test case
1 parent 6f4450a commit 3eb9307

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/test/java/com/thealgorithms/greedyalgorithms/MergeIntervalsTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ public void testMergeIntervalsWithIdenticalIntervals() {
6464
public void testMergeIntervalsWithRandomIntervals() {
6565
// Test case with a mix of overlapping and non-overlapping intervals
6666
int[][] intervals = {{1, 4}, {5, 7}, {2, 6}, {8, 10}};
67-
int[][] expected = {{1, 6}, {5, 7}, {8, 10}};
67+
int[][] expected = {{1, 7}, {8, 10}};
6868
int[][] result = MergeIntervals.merge(intervals);
6969
assertArrayEquals(expected, result);
7070
}

0 commit comments

Comments
 (0)