Skip to content

Commit

Permalink
fix in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Dimosts committed May 22, 2024
1 parent c4f95e5 commit b69d72d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/test_constraints.py
Original file line number Diff line number Diff line change
Expand Up @@ -197,21 +197,21 @@ def global_constraints(solver):
vals = [1, 2, 3]
cnts = intvar(0,10,shape=3)
expr = cls(NUM_ARGS, vals, cnts)
elif name = "LexLessEq":
elif name == "LexLessEq":
X = intvar(0, 10, shape=10)
Y = intvar(0, 10, shape=10)
expr = LexLessEq(X, Y)

elif name = "LexLess":
elif name == "LexLess":
X = intvar(0, 10, shape=10)
Y = intvar(0, 10, shape=10)
expr = LexLess(X, Y)

elif name = "LexChainLess":
elif name == "LexChainLess":
X = intvar(0, 10, shape=(10,10))
expr = LexChainLess(X)

elif name = "LexChainLessEq":
elif name == "LexChainLessEq":
X = intvar(0, 10, shape=(10,10))
expr = LexChainLess(X)
else: # default constructor, list of numvars
Expand Down

0 comments on commit b69d72d

Please sign in to comment.