Skip to content

Commit b17b5a2

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 93f14bd commit b17b5a2

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,17 @@
11
from simple_binary_search import binary_search
22

3+
34
def test_binary_search_leftmost_duplicate():
45
assert binary_search([1, 2, 2, 2, 3], 2) == 1
56

7+
68
def test_binary_search_all_duplicates():
79
assert binary_search([1, 1, 1, 1], 1) == 0
810

11+
912
def test_binary_search_not_found():
1013
assert binary_search([1, 2, 3], 4) == -1
1114

15+
1216
def test_binary_search_single_element():
1317
assert binary_search([5], 5) == 0

0 commit comments

Comments
 (0)