Exemple #1
0
def test_step_stop_backward(tgraph):
    assert tools.step(tgraph, 5, 3, backward=True) is None
Exemple #2
0
def test_step_inbound_false_backward(tgraph):
    assert tools.step(tgraph, 7, 5, backward=True) == 3
Exemple #3
0
def test_step_inbound_true_backward(tgraph):
    assert tools.step(tgraph, 7, 5, backward=True, inbound=True) is None
Exemple #4
0
def test_step_stop(tgraph):
    assert tools.step(tgraph, 3, 5) is None
Exemple #5
0
def test_step_basic_backward(tgraph):
    assert tools.step(tgraph, 3, 2, backward=True) == 1
Exemple #6
0
def test_step_inbound_false(tgraph):
    assert tools.step(tgraph, 2, 3) == 5
Exemple #7
0
def test_step_inbound_true(tgraph):
    assert tools.step(tgraph, 2, 3, inbound=True) is None
Exemple #8
0
def test_step_stop_backward(tgraph):
    assert tools.step(tgraph, 5, 3, backward=True) is None
Exemple #9
0
def test_step_basic(tgraph):
    assert tools.step(tgraph, 1, 2) == 3
Exemple #10
0
def test_step_inbound_false_backward(tgraph):
    assert tools.step(tgraph, 7, 5, backward=True) == 3
Exemple #11
0
def test_step_inbound_true_backward(tgraph):
    assert tools.step(tgraph, 7, 5, backward=True, inbound=True) is None
Exemple #12
0
def test_step_basic_backward(tgraph):
    assert tools.step(tgraph, 3, 2, backward=True) == 1
Exemple #13
0
def test_step_stop(tgraph):
    assert tools.step(tgraph, 3, 5) is None
Exemple #14
0
def test_step_inbound_true(tgraph):
    assert tools.step(tgraph, 2, 3, inbound=True) is None
Exemple #15
0
def test_step_inbound_false(tgraph):
    assert tools.step(tgraph, 2, 3) == 5
Exemple #16
0
def test_step_basic(tgraph):
    assert tools.step(tgraph, 1, 2) == 3