Skip to content

Commit

Permalink
update test_backend.py
Browse files Browse the repository at this point in the history
  • Loading branch information
pablormier committed May 5, 2024
1 parent 20c1baa commit 2844d0e
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions tests/test_backend.py
Original file line number Diff line number Diff line change
Expand Up @@ -401,12 +401,12 @@ def test_acyclic_flow_undirected_edge(backend):

def test_feasible_loop(backend):
G = Graph()
G.add_edge((), 'A')
G.add_edge('A', ())
G.add_edge('A', 'B')
G.add_edge('B', 'A')
G.add_edge((), 'B')
G.add_edge('B', ())
G.add_edge((), "A")
G.add_edge("A", ())
G.add_edge("A", "B")
G.add_edge("B", "A")
G.add_edge((), "B")
G.add_edge("B", ())
P = backend.Flow(G)
P += P.expr.flow[2] >= 1
P += P.expr.flow[3] >= 1
Expand All @@ -419,12 +419,12 @@ def test_feasible_loop(backend):

def test_acyclic_unfeasible_loop(backend):
G = Graph()
G.add_edge((), 'A')
G.add_edge('A', ())
G.add_edge('A', 'B')
G.add_edge('B', 'A')
G.add_edge((), 'B')
G.add_edge('B', ())
G.add_edge((), "A")
G.add_edge("A", ())
G.add_edge("A", "B")
G.add_edge("B", "A")
G.add_edge((), "B")
G.add_edge("B", ())
P = backend.AcyclicFlow(G)
P += P.expr.with_flow[2] == 1
P += P.expr.with_flow[3] == 1
Expand Down

0 comments on commit 2844d0e

Please sign in to comment.