Skip to content

Commit 6c077c7

Browse files
committed
Fix
1 parent 4838b61 commit 6c077c7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/test/java/com/thealgorithms/searches/BinarySearchTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ void testBinarySearchEmptyArray() {
100100
@Test
101101
void testBinarySearchLargeArray() {
102102
BinarySearch binarySearch = new BinarySearch();
103-
Integer[] array = IntStream.range(0, 10000).boxed().toArray(Integer[]::new); // Array from 0 to 9999
103+
Integer[] array = IntStream.range(0, 10000).boxed().toArray(Integer[] ::new); // Array from 0 to 9999
104104
int key = 9999; // Last element
105105
int expectedIndex = 9999; // Index of the last element
106106
assertEquals(expectedIndex, binarySearch.find(array, key), "The index of the last element should be 9999.");

0 commit comments

Comments
 (0)