Skip to content

Commit 6cad5a2

Browse files
committed
Fix
1 parent 39ed40d commit 6cad5a2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,8 +77,8 @@ void testExponentialSearchEmptyArray() {
7777
void testExponentialSearchLargeArray() {
7878
ExponentialSearch exponentialSearch = new ExponentialSearch();
7979
Integer[] array = IntStream.range(0, 10000).boxed().toArray(Integer[] ::new); // Array from 0 to 9999
80-
int key = 9999; // Last element
81-
int expectedIndex = 9999; // Index of the last element
80+
int key = 9999;
81+
int expectedIndex = 9999;
8282
assertEquals(expectedIndex, exponentialSearch.find(array, key), "The index of the last element should be 9999.");
8383
}
8484
}

0 commit comments

Comments
 (0)