Skip to content

Commit 3783ac5

Browse files
committed
Fix
1 parent 6453225 commit 3783ac5

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

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

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,10 @@ void setUp() {
2121
int size = 100;
2222
int maxElement = 100;
2323
sortedArray = random.ints(size, 1, maxElement)
24-
.distinct() // Ensure all elements are unique
25-
.sorted()
26-
.boxed()
27-
.toArray(Integer[]::new);
24+
.distinct() // Ensure all elements are unique
25+
.sorted()
26+
.boxed()
27+
.toArray(Integer[]::new);
2828
}
2929

3030
@Test
@@ -48,7 +48,7 @@ void testUpperBoundExactMatch() {
4848

4949
@Test
5050
void testUpperBoundMultipleValues() {
51-
Integer[] arrayWithDuplicates = new Integer[]{1, 1, 2, 3, 4, 4, 5, 6, 7, 8, 9}; // Test array with duplicates
51+
Integer[] arrayWithDuplicates = new Integer[] {1, 1, 2, 3, 4, 4, 5, 6, 7, 8, 9}; // Test array with duplicates
5252
int key = 4;
5353
int index = upperBound.find(arrayWithDuplicates, key);
5454

0 commit comments

Comments
 (0)