Skip to content

Commit

Permalink
adjust contains test that was falling back early
Browse files Browse the repository at this point in the history
  • Loading branch information
brandon-b-miller committed Jul 25, 2024
1 parent 17944df commit 6faf480
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions python/cudf_polars/tests/expressions/test_stringfunction.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,9 @@ def ldf(with_nulls):
if with_nulls:
a[4] = None
a[-3] = None
return pl.LazyFrame({"a": a, "b": range(len(a))})
return pl.LazyFrame(
{"a": a, "b": range(len(a)), "c": [str(i) for i in range(len(a))]}
)


slice_cases = [
Expand Down Expand Up @@ -84,7 +86,7 @@ def test_contains_re_non_strict_raises(ldf):


def test_contains_re_non_literal_raises(ldf):
q = ldf.select(pl.col("a").str.contains(pl.col("b"), literal=False))
q = ldf.select(pl.col("a").str.contains(pl.col("c"), literal=False))

assert_ir_translation_raises(q, NotImplementedError)

Expand Down

0 comments on commit 6faf480

Please sign in to comment.