File tree 1 file changed +6
-7
lines changed
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():
1976
1976
tm .assert_series_equal (result , expected )
1977
1977
1978
1978
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
-
1984
1979
@pytest .mark .xfail (
1985
1980
pa_version_under13p0 , reason = "https://github.com/apache/arrow/issues/36311"
1986
1981
)
1987
1982
def test_str_find_e2e ():
1988
- string = "abcdefgh "
1983
+ string = "abcaadef "
1989
1984
s = pd .Series ([string ], dtype = ArrowDtype (pa .string ()))
1990
- substrings = _get_all_substrings (string ) + ["" , "az" , "abce" ]
1991
1985
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
+ ]
1992
1991
for start in offsets :
1993
1992
for end in offsets :
1994
1993
for sub in substrings :
You can’t perform that action at this time.
0 commit comments