Skip to content

Commit 7e849c6

Browse files
committed
Fix: add newline at end of files and fix imports
1 parent 966e11f commit 7e849c6

2 files changed

Lines changed: 6 additions & 5 deletions

File tree

src/main/java/com/thealgorithms/searches/SentinelBinarySearch.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,4 +44,4 @@ public int find(int[] arr, int target) {
4444

4545
return -1;
4646
}
47-
}
47+
}

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

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,20 @@
11
package com.thealgorithms.searches;
22

3+
import static org.junit.jupiter.api.Assertions.assertEquals;
34
import org.junit.jupiter.api.Test;
4-
import static org.junit.jupiter.api.Assertions.*;
55

6-
public class SentinelBinarySearchTest {
6+
class SentinelBinarySearchTest {
7+
78
private final SentinelBinarySearch search = new SentinelBinarySearch();
89

910
@Test
10-
void testElementFound(){
11+
void testElementFound() {
1112
int[] arr = {1, 3, 5, 7, 9};
1213
assertEquals(2, search.find(arr, 5));
1314
}
1415

1516
@Test
16-
void testElementNotFound(){
17+
void testElementNotFound() {
1718
int[] arr = {1, 3, 5, 7, 9};
1819
assertEquals(-1, search.find(arr, 4));
1920
}

0 commit comments

Comments
 (0)