Skip to content
This repository was archived by the owner on Jul 2, 2024. It is now read-only.

Commit 284d557

Browse files
committed
Updated edge case tests
1 parent 2ec1882 commit 284d557

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

tests/bisearch/test_prefix.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,12 +34,14 @@ def test_find_all_default(strings_small_fixture):
3434

3535
def test_prefix_right_last(strings_small_fixture):
3636
string_idx = len(strings_small_fixture)
37-
assert prefix.bisect_right(strings_small_fixture, "cab") == string_idx
37+
search = strings_small_fixture[-1]
38+
assert prefix.bisect_right(strings_small_fixture, search) == string_idx
3839

3940

4041
def test_prefix_left_last(strings_small_fixture):
4142
string_idx = len(strings_small_fixture) - 1
42-
assert prefix.bisect_left(strings_small_fixture, "cab") == string_idx
43+
search = strings_small_fixture[-1]
44+
assert prefix.bisect_left(strings_small_fixture, search) == string_idx
4345

4446

4547
def test_prefix_right_negative(strings_small_fixture):

0 commit comments

Comments
 (0)