Skip to content

Commit ef5aecf

Browse files
committed
test expr
1 parent 06f8ebc commit ef5aecf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/test_matrix_variable.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -414,13 +414,13 @@ def test_matrix_compare_with_expr():
414414
assert (m.getVal(y) == np.ones(3)).all()
415415

416416

417-
def test_ranged_matrix_cons():
417+
def test_ranged_matrix_cons_with_expr():
418418
m = Model()
419419
var = m.addVar(vtype="B", ub=0)
420420

421421
# test "==" operator
422422
with pytest.raises(NotImplementedError):
423-
m.addMatrixCons(0 == (m.addMatrixVar(3) <= 1))
423+
m.addMatrixCons(var + 1 == (m.addMatrixVar(3) <= 1))
424424

425425
# test "<=" and ">=" operator
426426
x = m.addMatrixVar(3)

0 commit comments

Comments
 (0)