Skip to content

TST: misplaced string array test #47765

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 18, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions pandas/tests/arrays/numpy_/test_indexing.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,17 @@


class TestSearchsorted:
def test_searchsorted_string(self, string_dtype):
arr = pd.array(["a", "b", "c"], dtype=string_dtype)

result = arr.searchsorted("a", side="left")
assert is_scalar(result)
assert result == 0

result = arr.searchsorted("a", side="right")
assert is_scalar(result)
assert result == 1

def test_searchsorted_numeric_dtypes_scalar(self, any_real_numpy_dtype):
arr = pd.array([1, 3, 90], dtype=any_real_numpy_dtype)
result = arr.searchsorted(30)
Expand Down
16 changes: 0 additions & 16 deletions pandas/tests/arrays/string_/test_indexing.py

This file was deleted.