Skip to content

Commit 418bb48

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

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

searches/binary_search.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,4 +114,4 @@ def upper_bound(sorted_collection: list[int], item: int) -> int:
114114

115115
if left == len(sorted_collection) or sorted_collection[left] != item:
116116
return []
117-
return list(range(left, right))
117+
return list(range(left, right))

tests/test_binary_search_issue.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,4 +29,4 @@ def test_binary_search_property_based(arr: list[int], target: int) -> None:
2929
for i in range(result):
3030
assert arr[i] != target, f"Target at {result}, but earlier at {i}."
3131
else:
32-
assert result == -1, f"Target {target} not in {arr}, but found at {result}."
32+
assert result == -1, f"Target {target} not in {arr}, but found at {result}."

0 commit comments

Comments
 (0)