예제 #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