File tree Expand file tree Collapse file tree 1 file changed +6
-7
lines changed
Expand file tree Collapse file tree 1 file changed +6
-7
lines changed Original file line number Diff line number Diff line change @@ -1976,19 +1976,18 @@ def test_str_find_large_start():
19761976 tm .assert_series_equal (result , expected )
19771977
19781978
1979- def _get_all_substrings (string ):
1980- length = len (string ) + 1
1981- return [string [x :y ] for x , y in combinations (range (length ), r = 2 )]
1982-
1983-
19841979@pytest .mark .xfail (
19851980 pa_version_under13p0 , reason = "https://github.com/apache/arrow/issues/36311"
19861981)
19871982def test_str_find_e2e ():
1988- string = "abcdefgh "
1983+ string = "abcaadef "
19891984 s = pd .Series ([string ], dtype = ArrowDtype (pa .string ()))
1990- substrings = _get_all_substrings (string ) + ["" , "az" , "abce" ]
19911985 offsets = list (range (- 15 , 15 )) + [None ]
1986+ substrings = [string [x :y ] for x , y in combinations (range (len (string ) + 1 ), r = 2 )] + [
1987+ "" ,
1988+ "az" ,
1989+ "abce" ,
1990+ ]
19921991 for start in offsets :
19931992 for end in offsets :
19941993 for sub in substrings :
You can’t perform that action at this time.
0 commit comments