Exemplo n.º 1
0
def test_route_cost_1():
    graph = setup()
    assert getRouteCost(graph, 'A-B-C') == 9
Exemplo n.º 2
0
def test_route_cost_5():
    graph = setup()
    assert getRouteCost(graph, 'A-E-D') == 'NO SUCH ROUTE'
Exemplo n.º 3
0
def test_route_cost_3():
    graph = setup()
    assert getRouteCost(graph, 'A-D-C') == 13
Exemplo n.º 4
0
def test_route_cost_4():
    graph = setup()
    assert getRouteCost(graph, 'A-E-B-C-D') == 22
Exemplo n.º 5
0
def test_route_cost_2():
    graph = setup()
    assert getRouteCost(graph, 'A-D') == 5