Skip to content

Commit 22a6573

Browse files
committed
Fix
1 parent c6c618a commit 22a6573

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ void testExponentialSearchEmptyArray() {
7676
@Test
7777
void testExponentialSearchLargeArray() {
7878
ExponentialSearch exponentialSearch = new ExponentialSearch();
79-
Integer[] array = IntStream.range(0, 10000).boxed().toArray(Integer[]::new); // Array from 0 to 9999
79+
Integer[] array = IntStream.range(0, 10000).boxed().toArray(Integer[] ::new); // Array from 0 to 9999
8080
int key = 9999; // Last element
8181
int expectedIndex = 9999; // Index of the last element
8282
assertEquals(expectedIndex, exponentialSearch.find(array, key), "The index of the last element should be 9999.");

0 commit comments

Comments
 (0)