Skip to content

Commit

Permalink
add sum and product to test
Browse files Browse the repository at this point in the history
  • Loading branch information
coastalwhite committed Sep 10, 2024
1 parent e2e7fe9 commit 6f05782
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions py-polars/tests/unit/lazyframe/test_optimizations.py
Original file line number Diff line number Diff line change
Expand Up @@ -258,8 +258,8 @@ def test_collapse_joins_combinations() -> None:

exprs = []

for lhs in [pl.col.a, pl.col.b, pl.col.x, pl.lit(1)]:
for rhs in [pl.col.a, pl.col.b, pl.col.x, pl.lit(1)]:
for lhs in [pl.col.a, pl.col.b, pl.col.x, pl.lit(1), pl.col.a + pl.col.b]:
for rhs in [pl.col.a, pl.col.b, pl.col.x, pl.lit(1), pl.col.a * pl.col.x]:
for cmp in ["__eq__", "__ge__", "__lt__"]:
e = (getattr(lhs, cmp))(rhs)
exprs.append(e)
Expand Down

0 comments on commit 6f05782

Please sign in to comment.