Skip to content

Commit 56bfb41

Browse files
TST: misplaced string array test (#47765)
1 parent 08d38a3 commit 56bfb41

File tree

2 files changed

+11
-16
lines changed

2 files changed

+11
-16
lines changed

pandas/tests/arrays/numpy_/test_indexing.py

+11
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,17 @@
77

88

99
class TestSearchsorted:
10+
def test_searchsorted_string(self, string_dtype):
11+
arr = pd.array(["a", "b", "c"], dtype=string_dtype)
12+
13+
result = arr.searchsorted("a", side="left")
14+
assert is_scalar(result)
15+
assert result == 0
16+
17+
result = arr.searchsorted("a", side="right")
18+
assert is_scalar(result)
19+
assert result == 1
20+
1021
def test_searchsorted_numeric_dtypes_scalar(self, any_real_numpy_dtype):
1122
arr = pd.array([1, 3, 90], dtype=any_real_numpy_dtype)
1223
result = arr.searchsorted(30)

pandas/tests/arrays/string_/test_indexing.py

-16
This file was deleted.

0 commit comments

Comments
 (0)