Skip to content

Commit

Permalink
Add missing assert statements test_horizontal_agg
Browse files Browse the repository at this point in the history
  • Loading branch information
zundertj authored and ritchie46 committed Nov 17, 2021
1 parent b9a2589 commit 7739be2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions py-polars/tests/test_exprs.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
def test_horizontal_agg(fruits_cars: pl.DataFrame) -> None:
df = fruits_cars
out = df.select(pl.max([pl.col("A"), pl.col("B")])) # type: ignore
out[:, 0].to_list() == [5, 4, 3, 4, 5]
assert out[:, 0].to_list() == [5, 4, 3, 4, 5]

out = df.select(pl.min([pl.col("A"), pl.col("B")])) # type: ignore
out[:, 0].to_list() == [1, 2, 3, 2, 1]
assert out[:, 0].to_list() == [1, 2, 3, 2, 1]

0 comments on commit 7739be2

Please sign in to comment.