Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
ritchie46 committed Dec 21, 2024
1 parent 5080420 commit af40df2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions py-polars/tests/unit/dataframe/test_df.py
Original file line number Diff line number Diff line change
Expand Up @@ -2038,6 +2038,7 @@ def test_add_string() -> None:
expected = pl.DataFrame(
{"a": ["hello hi", "hello there"], "b": ["hello hello", "hello world"]}
)
print(expected)
assert_frame_equal(("hello " + df), expected)


Expand Down
3 changes: 2 additions & 1 deletion py-polars/tests/unit/series/test_series.py
Original file line number Diff line number Diff line change
Expand Up @@ -371,10 +371,11 @@ def test_categorical_agg(s: pl.Series, min: str | None, max: str | None) -> None
def test_add_string() -> None:
s = pl.Series(["hello", "weird"])
result = s + " world"
print(result)
assert_series_equal(result, pl.Series(["hello world", "weird world"]))

result = "pfx:" + s
assert_series_equal(result, pl.Series(["pfx:hello", "pfx:weird"]))
assert_series_equal(result, pl.Series("literal", ["pfx:hello", "pfx:weird"]))


@pytest.mark.parametrize(
Expand Down

0 comments on commit af40df2

Please sign in to comment.