Skip to content

Commit 41fbd46

Browse files
committed
Fix test
1 parent 6be0d1d commit 41fbd46

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/test/java/com/thealgorithms/divideandconquer/MedianOfTwoSortedArraysTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ void testFindMedianSortedArrays() {
1818
assertEquals(4.5, MedianOfTwoSortedArrays.findMedianSortedArrays(new int[] {1, 2, 8}, new int[] {3, 4, 5, 6, 7}));
1919

2020
// Test case 4: Arrays with odd total length
21-
assertEquals(3.0, MedianOfTwoSortedArrays.findMedianSortedArrays(new int[] {1, 2, 8}, new int[] {3, 4, 5}));
21+
assertEquals(3.5, MedianOfTwoSortedArrays.findMedianSortedArrays(new int[] {1, 2, 8}, new int[] {3, 4, 5}));
2222

2323
// Test case 5: Single element arrays
2424
assertEquals(2.0, MedianOfTwoSortedArrays.findMedianSortedArrays(new int[] {1}, new int[] {3}));

0 commit comments

Comments
 (0)