Skip to content

Commit 1da90cd

Browse files
committed
improve test names for binary search exercise
1 parent 6609226 commit 1da90cd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

exercises/practice/binary-search/src/test/java/BinarySearchTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ public void aValueSmallerThanTheArraysSmallestValueIsNotFound() {
9494

9595
@Disabled("Remove to run test")
9696
@Test
97-
public void aValueLargerThanTheArraysSmallestValueIsNotFound() throws ValueNotFoundException {
97+
public void aValueLargerThanTheArraysLargestValueIsNotFound() throws ValueNotFoundException {
9898
List<Integer> sortedList = List.of(1, 3, 4, 6, 8, 9, 11);
9999

100100
BinarySearch search = new BinarySearch(sortedList);
@@ -119,7 +119,7 @@ public void nothingIsFoundInAnEmptyArray() throws ValueNotFoundException {
119119
@Disabled("Remove to run test")
120120
@Test
121121
public void nothingIsFoundWhenTheLeftAndRightBoundCross() throws ValueNotFoundException {
122-
List<Integer> sortedList = List.of(1, 2);
122+
List<Integer> sortedList = List.of(2, 1);
123123

124124
BinarySearch search = new BinarySearch(sortedList);
125125

0 commit comments

Comments
 (0)