Skip to content

Commit

Permalink
test(backend): add backend test for StringReplace API
Browse files Browse the repository at this point in the history
  • Loading branch information
cpcloud committed Sep 13, 2022
1 parent 22cb297 commit a4bba34
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions ibis/backends/tests/test_string.py
Original file line number Diff line number Diff line change
Expand Up @@ -278,6 +278,12 @@ def test_string_col_is_unicode(alltypes, df):
id='concat_scalar_column',
marks=pytest.mark.notimpl(["datafusion"]),
),
param(
lambda t: t.string_col.replace("1", "42"),
lambda t: t.string_col.str.replace("1", "42"),
id="replace",
marks=pytest.mark.notimpl(["datafusion"]),
),
],
)
def test_string(backend, alltypes, df, result_func, expected_func):
Expand Down

0 comments on commit a4bba34

Please sign in to comment.