Skip to content

Commit 572dad4

Browse files
committed
Resolve test stylechecks
1 parent 6c0fc7e commit 572dad4

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

src/main/java/algorithms/binarySearch/binarySearchTemplated/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ Due to the nature of floor division in Java's \ operator, if there are two mid-v
8383
when the number of elements is even, the first mid-value will be selected. Suppose we do not increment the low pointer
8484
during reassignment, `low = mid`, let us take a look at the following example:
8585

86-
![binary search templated 1 img](../../../../../docs/assets/images/BinarySearchTemplated3.jpeg)
86+
![binary search templated 1 img](../../../../../../docs/assets/images/BinarySearchTemplated3.jpeg)
8787

8888
The search space has been narrowed down to the range of index 1 (low) to 2 (high). The mid-value is calculated,
8989
`mid = (1 + 2) / 2`, to be 1 due to floor division. Since `2 < 5`, we enter the else block where there is reassignment

src/test/java/algorithms/binarySearch/BinarySearchTest.java

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
package algorithms.binarySearch;
22

3-
import algorithms.binarySearch.binarySearch.BinarySearch;
4-
import algorithms.binarySearch.binarySearchTemplated.BinarySearchTemplated;
3+
import static org.junit.Assert.assertEquals;
4+
55
import org.junit.Test;
66

7-
import static org.junit.Assert.assertEquals;
7+
import algorithms.binarySearch.binarySearch.BinarySearch;
8+
import algorithms.binarySearch.binarySearchTemplated.BinarySearchTemplated;
89

910
public class BinarySearchTest {
1011
@Test

0 commit comments

Comments
 (0)