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