Skip to content

Commit 1b481eb

Browse files
committed
Update inequality test assertions in test_expr.py
Changed expected values in test_inequality to reflect updated behavior of GenExprs, asserting 1 instead of 0.0 for _lhs and _rhs.
1 parent 1b4719e commit 1b481eb

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

tests/test_expr.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -142,15 +142,14 @@ def test_inequality(model):
142142
cons = expr >= 1 + x**1.2
143143
assert isinstance(cons, ExprCons)
144144
assert isinstance(cons.expr, Expr)
145-
# NOTE: the 1 is passed to the other side because of the way GenExprs work
146-
assert cons._lhs == 0.0
145+
assert cons._lhs == 1
147146
assert cons._rhs is None
148147

149148
assert isinstance(expr, Expr)
150149
cons = exp(expr) <= 1 + x**1.2
151150
assert isinstance(cons, ExprCons)
152151
assert isinstance(cons.expr, Expr)
153-
assert cons._rhs == 0.0
152+
assert cons._rhs == 1
154153
assert cons._lhs is None
155154

156155

0 commit comments

Comments
 (0)